Hadoop HiveDerby/mysql安装
我从以下日志中有2个查询:Hadoop HiveDerby/mysql安装,hadoop,hive,Hadoop,Hive,我从以下日志中有2个查询: 如何删除第一行警告消息 为什么Hive抱怨xml格式正确,或者我遗漏了什么 15/04/23 18:26:58 WARN conf.HiveConf: HiveConf of name hive.metastore.local does not exist Logging initialized using configuration in jar:file:/usr/lib/hive/lib/hive-common-1.1.0.jar!/hive-log4j.pr
15/04/23 18:26:58 WARN conf.HiveConf: HiveConf of name hive.metastore.local does not exist
Logging initialized using configuration in jar:file:/usr/lib/hive/lib/hive-common-1.1.0.jar!/hive-log4j.properties
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/lib/hive/lib/hive-jdbc-1.1.0-standalone.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/local/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
Exception in thread "main" java.lang.RuntimeException: java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: ${system:java.io.tmpdir%7D/$%7Bsystem:user.name%7D
at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:472)
at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:671)
at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:615)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.apache.hadoop.util.RunJar.main(RunJar.java:212)
Caused by: java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: ${system:java.io.tmpdir%7D/$%7Bsystem:user.name%7D
at org.apache.hadoop.fs.Path.initialize(Path.java:206)
at org.apache.hadoop.fs.Path.<init>(Path.java:172)
at org.apache.hadoop.hive.ql.session.SessionState.createSessionDirs(SessionState.java:515)
at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:458)
... 7 more
**Caused by: java.net.URISyntaxException: Relative path in absolute URI: ${system:java.io.tmpdir%7D/$%7Bsystem:user.name%7D**
at java.net.URI.checkPath(URI.java:1823)
at java.net.URI.<init>(URI.java:745)
at org.apache.hadoop.fs.Path.initialize(Path.java:203)
... 10 more
15/04/23 18:26:58警告conf.HiveConf:hive.metastore.local名称的HiveConf不存在
使用jar:file:/usr/lib/hive/lib/hive-common-1.1.0.jar中的配置初始化日志记录/hive-log4j.properties
SLF4J:类路径包含多个SLF4J绑定。
SLF4J:在[jar:file:/usr/lib/hive/lib/hive-jdbc-1.1.0-standalone.jar!/org/SLF4J/impl/StaticLoggerBinder.class]中找到绑定
SLF4J:在[jar:file:/usr/local/hadoop/share/hadoop/common/lib/SLF4J-log4j12-1.7.5.jar!/org/SLF4J/impl/StaticLoggerBinder.class]中找到绑定
SLF4J:参见http://www.slf4j.org/codes.html#multiple_bindings 我需要一个解释。
SLF4J:实际绑定的类型为[org.SLF4J.impl.Log4jLoggerFactory]
线程“main”java.lang.RuntimeException中的异常:java.lang.IllegalArgumentException:java.net.URISyntaxException:绝对URI中的相对路径:${system:java.io.tmpdir%7D/$%7b系统:user.name%7D
位于org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:472)
位于org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:671)
位于org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:615)
在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)处
位于sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)中
位于java.lang.reflect.Method.invoke(Method.java:483)
位于org.apache.hadoop.util.RunJar.main(RunJar.java:212)
原因:java.lang.IllegalArgumentException:java.net.URISyntaxException:绝对URI中的相对路径:${system:java.io.tmpdir%7D/$%7b系统:user.name%7D
位于org.apache.hadoop.fs.Path.initialize(Path.java:206)
位于org.apache.hadoop.fs.Path(Path.java:172)
位于org.apache.hadoop.hive.ql.session.SessionState.createSessionDirs(SessionState.java:515)
位于org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:458)
…还有7个
**原因:java.net.URISyntaxException:绝对URI中的相对路径:${system:java.io.tmpdir%7D/$%7Bsystem:user.name%7D**
位于java.net.URI.checkPath(URI.java:1823)
位于java.net.URI。(URI.java:745)
位于org.apache.hadoop.fs.Path.initialize(Path.java:203)
…还有10个
.关于第一行警告消息,
警告告诉您没有使用hive.metastore.local密钥。如果您更关心删除关于第一行警告消息的警告,请尝试从hive-site.xml中删除此配置,
警告告诉您没有使用hive.metastore.local键。如果您更关心删除警告,请尝试从hive-site.xml中删除此配置。我也面临同样的问题。@partha是对的。问题是Hadoop“Path”不支持文件名中的“:” 因此,我用以下属性修改了hive-site.xml,它成功了
<name>hive.exec.scratchdir</name>
<value>/tmp/hive-${user.name}</value>
<name>hive.exec.local.scratchdir</name>
<value>/tmp/${user.name}</value>
<name>hive.downloaded.resources.dir</name>
<value>/tmp/${user.name}_resources</value>
hive.exec.scratchdir
/tmp/hive-${user.name}
hive.exec.local.scratchdir
/tmp/${user.name}
hive.download.resources.dir
/tmp/${user.name}\u资源
我也面临同样的问题。@partha是对的。问题是Hadoop“Path”不支持文件名中的“:”
因此,我用以下属性修改了hive-site.xml,它成功了
<name>hive.exec.scratchdir</name>
<value>/tmp/hive-${user.name}</value>
<name>hive.exec.local.scratchdir</name>
<value>/tmp/${user.name}</value>
<name>hive.downloaded.resources.dir</name>
<value>/tmp/${user.name}_resources</value>
hive.exec.scratchdir
/tmp/hive-${user.name}
hive.exec.local.scratchdir
/tmp/${user.name}
hive.download.resources.dir
/tmp/${user.name}\u资源
我得到的下一个错误是“java.net.urisyntaxeption:绝对URI中的相对路径:${system:java.io.tmpdir%7D/$%7hive.session.id%7D\u资源”我应该用什么替换它?我用/usr/local/hive_workspace替换了它,应该可以了?我希望您已经替换了上面在hive-site.xml中提到的所有此类事件。如果问题仍然存在,请在此处共享您的hive-site.xml。我指的是hive.querylog.location hive.exec.local.scratchdir hive.downloaded.resources.dirnext错误我得到它“java.net.URISyntaxException:绝对URI中的相对路径:${system:java.io.tmpdir%7D/$%7hive.session.id%7D_资源”我应该用什么替换它?我用/usr/local/hive_workspace替换了它,应该可以了?我希望您已经替换了上面在hive-site.xml中提到的所有此类事件。如果问题仍然存在,请在这里共享您的hive-site.xml。我指的是hive.querylog.location-hive.exec.local.scratchdir-hive.downloaded.resources.dir谢谢@sunanda,它帮助了我,我一直在努力解决这个主题线程问题…谢谢@sunanda,它帮助了我,我一直在努力解决这个主题线程问题。。。