运行配置单元查询时出现错误的FS

运行配置单元查询时出现错误的FS

本文介绍了运行配置单元查询时出现错误的FS:文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在配置单元上运行一个简单的选择查询时出现这个奇怪的错误

$ p $ java.lang.IllegalArgumentException:错误的FS :file://usr/lib/hive/lib/CustomUDFint.jar,expected:file:///
at org.apache.hadoop.fs.FileSystem.checkPath(FileSystem.java:410)
org.apache.hadoop.fs.RawLocalFileSystem.pathToFile(RawLocalFileSystem.java:56)
at org.apache.hadoop.fs.RawLocalFileSystem.getFileStatus(RawLocalFileSystem.java:379)
at org。 apache.hadoop.fs.FilterFileSystem.getFileStatus(FilterFileSystem.java:251)
at org.apache.hadoop.fs.FileUtil.copy(FileUtil.java:207)

在Google上搜索时,我发现所有链接提到表格位置的配置单元元数据指向一些错误的地方。



任何理由为何如此?和我如何解决它?



感谢,

解决方案

请确保HADOOP_HOME设置为正确值?您使用的是哪个Hadoop版本?尝试通过Hive shell设置NN的位置并查看是否有帮助:

  hive -hiveconf fs。根据您的配置更改本地主机。默认名称=本地主机

p>

while running a simple select query on hive I'm getting this weird error

java.lang.IllegalArgumentException: Wrong FS: file://usr/lib/hive/lib/CustomUDFint.jar, expected: file:///
    at org.apache.hadoop.fs.FileSystem.checkPath(FileSystem.java:410)
    at org.apache.hadoop.fs.RawLocalFileSystem.pathToFile(RawLocalFileSystem.java:56)
    at org.apache.hadoop.fs.RawLocalFileSystem.getFileStatus(RawLocalFileSystem.java:379)
    at org.apache.hadoop.fs.FilterFileSystem.getFileStatus(FilterFileSystem.java:251)
    at org.apache.hadoop.fs.FileUtil.copy(FileUtil.java:207)

on googling I found all the links mentioning that the hive metadata for the the table location is pointing to some wrong place.

Any reason why this is so ? and How I can fix it?

thanks,

解决方案

Please make sure HADOOP_HOME is set to proper value?Which Hadoop release are you using?Try setting NN's location through Hive shell and see if helps :

hive -hiveconf fs.default.name=localhost

Change localhost as per your configuration.

这篇关于运行配置单元查询时出现错误的FS:文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-01 22:38