使用Tez执行引擎将文件系统添加到Hive

时间:2017-09-07 14:55:57

标签: hadoop hive hdinsight tez

使用Tez执行引擎针对外部ORC表执行查询时收到以下错误:

Vertex failed, vertexName=Map 6, vertexId=vertex_1504790331090_0008_1_01, diagnostics=[Vertex vertex_1504790331090_0008_1_01 [Map 6] killed/failed due to:ROOT_INPUT_INIT_FAILURE, Vertex Input: item initializer failed, 
vertex=vertex_1504790331090_0008_1_01 [Map 6], java.lang.RuntimeException: 
java.lang.ClassNotFoundException: Class org.apache.
hadoop.fs.nfs.NFSv3FileSystem not found
    at 
org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2241)
    at 

org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:2780)
    at 
org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2793)
    at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:99)
    at 
org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2829)

但是,当我使用MapReduce引擎运行查询时,它工作正常。我已经将正确的行添加到core-site.xml,我已经尝试将充当协议驱动程序的jar文件添加到hive-site.xml。

为了让Hive + Tez支持额外的文件系统,我需要在哪里添加jar或修改配置?

1 个答案:

答案 0 :(得分:1)

在tez-site.xml文件中,配置tez.lib.uris属性以包含所需jar的路径。

相关问题