在类路径中找不到hive-site.xml [英] hive-site.xml not found on classpath

查看:2068
本文介绍了在类路径中找不到hive-site.xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在运行giraph hiverunner的时候,我得到了有关hive-site.xml的类路径的错误,我已经设置了hive-env.sh和bash.bashrc,但是错误仍然存​​在。任何帮助如何设置classpath和解决这个错误.. ??任何其他的东西我需要修改.. ??

我已经尝试hivejdbc前执行没有任何错误..但工作hadoop与罐子给错误..



会很好的满足任何帮助。

  13/01 / 16 11:58:23 WARN conf.HiveConf:在CLASSPATH上找不到hive-site.xml 
线程main中的异常java.lang.NullPointerException $ b $ org.apache.giraph.io.hcatalog .HiveGiraphRunner.adjustConfigurationForHive(HiveGiraphRunner.java:212)
在org.apache.giraph.io.hcatalog.HiveGiraphRunner.run(HiveGiraphRunner.java:164)
在org.apache.hadoop.util.ToolRunner .run(ToolRunner.java:65)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
at org.apache.giraph.io.hcatalog.HiveGiraphRunner.main (HiveGiraphRunner.java:147)
at sun.reflect.NativeMethodAccessorImpl.invoke0(本地方法)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.r eflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.hadoop.util.RunJar.main( RunJar.java:197)


解决方案

类路径呢?在 hadoop-env.sh 中存在行 export HADOOP_CLASSPATH = 。取消注释并将Hives conf lib 文件夹添加到它。这对我有帮助。


while running giraph hiverunner i get following error regarding classpath related to hive-site.xml, i have already set hive-env.sh, and bash.bashrc, but error is still coming.. any help how to set classpath and resolve this error..?? any thing else i need to modify..??

i have already tried hivejdbc ex its executes without any error.. but while working hadoop with jars gives error..

will be great full for any help..

13/01/16 11:58:23 WARN conf.HiveConf: hive-site.xml not found on CLASSPATH
Exception in thread "main" java.lang.NullPointerException
    at org.apache.giraph.io.hcatalog.HiveGiraphRunner.adjustConfigurationForHive(HiveGiraphRunner.java:212)
    at org.apache.giraph.io.hcatalog.HiveGiraphRunner.run(HiveGiraphRunner.java:164)
    at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
    at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
    at org.apache.giraph.io.hcatalog.HiveGiraphRunner.main(HiveGiraphRunner.java:147)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.apache.hadoop.util.RunJar.main(RunJar.java:197)

解决方案

Did you set on Hadoops classpath as well? In hadoop-env.sh there is as line export HADOOP_CLASSPATH=. Uncomment it and add Hives conf and lib folder to it. That does it for me.

这篇关于在类路径中找不到hive-site.xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆