现象:
sqoop 迁移 oracle 数据到 hive ,卡在 Connecting to jdbc:hive2://....

解决:
在 /etc/hive/conf 增加 beeline-hs2-connection.xml 内容如下:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration>
<property>
<name>beeline.hs2.connection.user</name>
<value>hive</value>
</property>
<property>
<name>beeline.hs2.connection.password</name>
<value>hive</value>
</property>
</configuration>
本文介绍了一种解决sqoop在迁移Oracle数据到Hive时遇到的连接问题的方法。通过在/etc/hive/conf目录下创建并配置beeline-hs2-connection.xml文件,设置用户名和密码为'hive',成功解决了卡在Connecting to jdbc:hive2的问题。
1306

被折叠的 条评论
为什么被折叠?



