Yeah, the code looks for the file in the source location, not in the
packaged location. It's in the root of the examples jar; you can
extract it to "src/main/resources/
kv1.txt" in the local directory (creating the subdirs) and then you
can run the example.

Probably should be fixed though (bonus if both styles work after the fix).

On Tue, Nov 4, 2014 at 7:13 PM, Qiuzhuang Lian <qiuzhuang.l...@gmail.com> wrote:
> 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



-- 
Marcelo

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@spark.apache.org
For additional commands, e-mail: dev-h...@spark.apache.org

Reply via email to