sqoop 迁移 oracle 数据到 hive ,卡住 Connecting to jdbc:hive2:

    技术2022-07-12  68

    现象:

    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>

    Processed: 0.020, SQL: 9