org.pentaho.di.core.exception.KettleDatabaseException: Error occurred while trying to connect to the databaseError connecting to database: (using class org.apache.hive.jdbc.HiveDriver)Could not open client transport with JDBC Uri: jdbc:hive2://hadoop01:10000/taobao: Failed to open new session: java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User: root is not allowed to impersonate anonymousorg.pentaho.di.core.exception.KettleDatabaseException: Error occurred while trying to connect to the databaseError connecting to database: (using class org.apache.hive.jdbc.HiveDriver)Could not open client transport with JDBC Uri: jdbc:hive2://hadoop01:10000/taobao: Failed to open new session: java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User: root is not allowed to impersonate anonymous
回答不易,求求您采纳哦 感激不尽
这个问题是因为 Kettle 连接 Hive 时,没有获得权限而导致连接失败。报错信息中给出了错误原因:用户 root 没有被允许以 anonymous 身份进行操作。
解决这个问题的方法是:
确保 Kettle 用户具有在 Hive 中读写数据的权限。您可以在 Hive 中给该用户分配必要的权限。
如果 Kettle 用户是 Hive 的管理员用户,请确保管理员用户在 Hive 中具有以 anonymous 身份进行操作的权限。
如果仍然无法解决问题,请检查 Hive 配置文件(例如,hive-site.xml)以确保启用了用户模拟。
可以使用其他用户进行尝试。