spark-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Qiuzhuang Lian <qiuzhuang.l...@gmail.com>
Subject src/main/resources/kv1.txt not found in example of HiveFromSpark
Date Wed, 05 Nov 2014 03:13:34 GMT
When running HiveFromSpark example via run-example shell, I got error,

FAILED: SemanticException Line 1:23 Invalid path
''src/main/resources/kv1.txt'': No files matching path
file:/home/kand/javaprojects/spark/src/main/resources/kv1.txt

======================
END HIVE FAILURE OUTPUT
======================

Exception in thread "main"
org.apache.spark.sql.execution.QueryExecutionException: FAILED:
SemanticException Line 1:23 Invalid path ''src/main/resources/kv1.txt'': No
files matching path
file:/home/kand/javaprojects/spark/src/main/resources/kv1.txt

I think the hardcode dir should be

examples/src/main/resources/kv1.txt

instead of

src/main/resources/kv1.txt in that class.

Thanks,
Qiuzhuang

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message