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

Reply via email to