

Hive启动报错Exception in thread "main" java.lang.IllegalArgumentExcept...
source link: http://www.lzhpo.com/article/99
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Exception in thread "main" 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:263) at org.apache.hadoop.fs.Path.<init>(Path.java:221) at org.apache.hadoop.hive.ql.session.SessionState.createSessionDirs(SessionState.java:663) at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:586) at org.apache.hadoop.hive.ql.session.SessionState.beginStart(SessionState.java:553) at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:750) at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:686) 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:498) at org.apache.hadoop.util.RunJar.run(RunJar.java:323) at org.apache.hadoop.util.RunJar.main(RunJar.java:236)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:260) ... 12 more
搜索system:java.io.tmpdir
,将搜索出来的结果全部替换。(前面从6 ~ 9配置了,这里不会报错)
搜索system:java.io.tmpdir
,将搜索出来的结果全部替换,如下:
<!-- 6.修改为/software/hive/iotmp --> <property> <name>hive.exec.local.scratchdir</name> <value>/software/hive/iotmp</value> <description>Local scratch space for Hive jobs</description> </property>
<!-- 7.修改为/software/hive/iotmp --> <property> <name>hive.downloaded.resources.dir</name> <value>/software/hive/iotmp</value> <description>Temporary local directory for added resources in the remote file system.</description> </property>
<!-- 8.修改为/software/hive/iotmp --> <property> <name>hive.querylog.location</name> <value>/software/hive/iotmp</value> <description>Location of Hive run time structured log file</description> </property>
<!-- 9.修改为/software/hive/iotmp --> <property> <name>hive.server2.logging.operation.log.location</name> <value>/software/hive/iotmp</value> <description>Top level directory where operation logs are stored if logging functionality is enabled</description> </property>
修改之后,启动成功:
- 本文作者: lzhpo
- 本文链接: http://www.lzhpo.com/article/99
- 版权声明: 本文为本人原创文章,采用 CC BY 3.0 CN协议 ,可自由转载、引用,但需署名作者且注明文章出处。
Recommend
-
12
Flyway 执行报错: 'user_variables_by_thread' 表没有SELECT权限问题 ...
-
7
How to Fix the "SYSTEM THREAD EXCEPTION NOT HANDLED" BSOD Stop Code in Windows 10 By Manuviraj Godara Published 12 hours ago...
-
18
5 前端报错Uncaught Error: VM Exception while processing transaction: revert ...
-
8
fsevents unavailablemacOS fsevents unavailable (this watcher can only be used on Darwin)安装文件监听清除本地原有的watchman npm r -g watchman 英特尔MAC 安装 brew install watchman M1芯片 安装 arch -arm6...
-
4
ClojureScript/Om: Spurious "Minified exception occured" With Advanced Optimizations May 13, 2014 After having upgraded t...
-
6
Windows Defender 一直误报 "Win32/Hive.ZY" V2EX = way to explore V2EX 是一个关于分享和探索的地方 Sponsored by
-
8
CDH6.2.1的hive 2.1.1升级到2.3.9后的beeline报错处理 精选 原创 江南独孤客 2022-11-25...
-
9
如何解决报错: "mount point does not exist" 2023-04-04 09:04:18 这个报错是装在点(mount point)的问题,想要安装驱动器的装在点不存在。所以其解决方案就是创建一共安装点,然后再次安装驱动器。
-
6
React Native is a powerful framework for building cross-platform mobile applications. However, like any technology, a developer has to work through occasional errors. One such error is the “Non-std C++ Exception,” often related to multiple Metro b...
-
8
求教问题:Exception in thread main java.lang.ArrayIndexOutOfBoundsException 运行程序:pub...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK