HDInsight Hive not finding SerDe jar in ADD JAR statement

人走茶凉 提交于 2019-12-13 04:40:46

问题


I've uploaded json-serde-1.1.9.2.jar to the blob store with path "/lib/" and added

ADD JAR /lib/json-serde-1.1.9.2.jar

But am getting

/lib/json-serde-1.1.9.2.jar does not exist

I've tried it without the path and also provided the full url to the ADD JAR statement with the same result.

Would really appreciate some help on this, thanks!


回答1:


If you don't include the scheme, then Hive is going to look on the local filesystem (you can see the code around line 768 of the source)

when you included the URI, make sure you use the full form:

ADD JAR wasb:///lib/json-serde-1.1.9.2.jar

If that still doesn't work, provide your updated command as well as some details about how you are launching the code. Are you RDP'd in to the cluster running via the Hive shell, or running remote via PowerShell or some other API?



来源:https://stackoverflow.com/questions/23426445/hdinsight-hive-not-finding-serde-jar-in-add-jar-statement

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!