You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Jijiao Zeng (JIRA)" <ji...@apache.org> on 2018/04/22 21:29:00 UTC

[jira] [Created] (SPARK-24048) load a local csv file

Jijiao Zeng created SPARK-24048:
-----------------------------------

             Summary: load a local csv file
                 Key: SPARK-24048
                 URL: https://issues.apache.org/jira/browse/SPARK-24048
             Project: Spark
          Issue Type: IT Help
          Components: PySpark
    Affects Versions: 2.3.0
         Environment: python 2.7

java jdk 10

 
            Reporter: Jijiao Zeng


Hi all, 

I am new to spark and pyspark. I tried to load a lock csv.file by the fucntion spark. read. csv(), but I met a follwing traceback:

 

>>> df=spark.read.csv("/Users/jzeng/employee.txt")

Traceback (most recent call last):

  File "<stdin>", line 1, in <module>

  File "/Users/jzeng/spark-2.3.0-bin-hadoop2.7/python/pyspark/sql/readwriter.py", line 439, in csv

    return self._df(self._jreader.csv(self._spark._sc._jvm.PythonUtils.toSeq(path)))

  File "/Users/jzeng/spark-2.3.0-bin-hadoop2.7/python/lib/py4j-0.10.6-src.zip/py4j/java_gateway.py", line 1160, in __call__

  File "/Users/jzeng/spark-2.3.0-bin-hadoop2.7/python/pyspark/sql/utils.py", line 79, in deco

    raise IllegalArgumentException(s.split(': ', 1)[1], stackTrace)

pyspark.sql.utils.IllegalArgumentException: u'Unable to locate hive jars to connect to metastore. Please set spark.sql.hive.metastore.jars.'

 

Do you have any suggestion solve this problem?

 

Thanks.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org