hive 报错 Error: No se pudo abrir el transporte del cliente con JDBC Uri: jdbc: hive2: // node-4: 10000: No se pudo operar

El primer tipo: el error de conexión beeline en Hive

Error: Could not open client transport with JDBC Uri: jdbc:hive2://node-4:10000: 
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 root 
(state=08S01,code=0)

El motivo del error
hiveserver2 agrega control de permisos, que debe configurarse en el archivo de configuración de Hadoop

Solución
Agregue el siguiente contenido a core-site.xml de hadoop

<property>
    <name>hadoop.proxyuser.root.hosts</name>
    <value>*</value>
</property>
<property>
    <name>hadoop.proxyuser.root.groups</name>
    <value>*</value>
</property>

Reinicie hadoop y vuelva a conectarse a beeline

El segundo tipo: el error de conexión beeline en Hive

hadoop is not allowed to impersonate anonymous

Solución:

<property>
    <name>hadoop.proxyuser.hadoop.hosts</name>
    <value>*</value>
</property>
<property>
    <name>hadoop.proxyuser.hadoop.groups</name>
    <value>*</value>
</property>

Supongo que te gusta

Origin blog.csdn.net/weixin_46122692/article/details/109248882
Recomendado
Clasificación