Hadoop ve ekosistemle yeni yapıyorum. Java'da JDBC ile Hive çalışıyorum. Bu benim basit kod yalnızca sürücüyü test etmektir:java.sql.SQLException: Uygun bir sürücü bulunamadı jdbc: hive: // localhost: 10000/default
import java.sql.DriverManager;
import java.sql.SQLException;
public class PrepareHiveTable {
private static String driverName = "org.apache.hive.jdbc.HiveDriver";
public static void main(String[] args) throws ClassNotFoundException, SQLException {
Class.forName(driverName);
Connection con = DriverManager.getConnection("jdbc:hive://localhost:10000/default", "", "");
}
}
Ben sınıf için org.apache.hive.jdbc.HiveDriver
ithal ettik ve bu sürücü listesidir benim DriverManager
:
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
Ama kodu çalıştırdığınızda Bu hatayı alıyorum: Burada kimse nasıl olabileceğini biliyor mu? Ve nasıl çözülür?
Çözümü buldum. Kovan 1.2.1 kullanıyorum bu yüzden jdbc: hive2: // localhost: 10000/default yerine jdbc: hive: // localhost: 10000/default Teşekkür ederim –