Closed shyamraj242 closed 2 years ago
HI @dstreev
When we are trying to get the hive tables report, we are getting the below error.
Error: Application JAVA_OPTS=-Xms1024m -Xmx2048m -XX:+UseG1GC PRG_ARGS= "sre" "-db" "hivesmallfiles" "-cfg" "/home/yarn/hivesmallfiles/hive-sre/default.yaml" "-o" "./sre-out" openjdk version "1.8.0_252" OpenJDK Runtime Environment (build 1.8.0_252-b09) OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode) Launching: sre Using Config: /home/yarn/hivesmallfiles/hive-sre/default.yaml
java.sql.SQLException: No suitable driver found for jdbc:oracle:thin:@//XXXXXXXXXXXXX:2063/infadev at java.sql.DriverManager.getConnection(DriverManager.java:689) at java.sql.DriverManager.getConnection(DriverManager.java:208) at org.apache.commons.dbcp2.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:123) at org.apache.commons.dbcp2.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:355)
Steps We Performed:
yarn@XXXXXXXX-/home/yarn/hivesmallfiles/hive-sre $ cat default.yaml metastore_direct: uri: "jdbc:oracle:thin:@//XXXXXXX:2063/infadev" type: ORACLE
initSql: "ALTER SESSION SET CURRENT_SCHEMA=infadev" connectionProperties: user: omgdev_hive password: XXXXXX connectionPool: min: 3 max: 5 hs2: uri: "jdbc:hive2://XXXXXXX:2181,XXXXXXXXXXX:2181,XXXXXXXX:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2" connectionPool: min: 3 max: 5 parallelism: 4 queries: db_tbl_count: parameters: dbs: override: "%"
Please let me know if you need any other information on this.
Hi @dstreev
any inputs you needed from my side.
@shyamraj242 was the jdbc jar file added to $HOME/.hive-sre/aux_libs ?
Closing with no response to previous question.