beeline 如何在没有有效 kerberos tgt 的情况下列出 hdfs?

问题描述

0: jdbc:hive2://asok-1-openstack.com:2181,aso> !sh hdfs dfs -ls /
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/hdp/3.1.5.0-152/hive/lib/log4j-slf4j-impl-2.10.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/hdp/3.1.5.0-152/hadoop/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
Found 9 items
drwxrwxrwt   - yarn   hadoop          0 2021-01-30 08:10 /app-logs
drwxr-xr-x   - yarn   hadoop          0 2021-01-30 08:07 /ats
drwxr-xr-x   - hdfs   hdfs            0 2021-01-30 08:07 /atsv2
drwxr-xr-x   - hdfs   hdfs            0 2021-01-30 08:07 /hdp
drwxr-xr-x   - mapred hdfs            0 2021-01-30 08:07 /mapred
drwxrwxrwx   - mapred hadoop          0 2021-01-30 08:07 /mr-history
drwxrwxrwx   - hdfs   hdfs            0 2021-02-03 12:21 /tmp
drwxr-xr-x   - hdfs   hdfs            0 2021-01-30 14:54 /user
drwxr-xr-x   - hdfs   hdfs            0 2021-01-30 14:54 /warehouse
0: jdbc:hive2://asok-1-openstack.com:2181,aso> !sh pwd
/tmp/hsperfdata_hive
0: jdbc:hive2://asok-1-openstack.com:2181,aso> !sh id
uid=1008(hive) gid=1002(hadoop) groups=1002(hadoop) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
0: jdbc:hive2://asok-1-openstack.com:2181,aso> !sh klist
Ticket cache: FILE:/tmp/krb5cc_1008
Default principal: hive/asok-2-openstack.com@OPENSTACK.COM

Valid starting       Expires              Service principal
05/04/2021 12:28:09  05/05/2021 12:28:09  krbtgt/OPENSTACK.COM@OPENSTACK.COM
0: jdbc:hive2://asok-1-openstack.com:2181,also>

在这里可以看到我的用户 hive 拥有仅适用于 hive 服务的有效票证。 虽然 hdfs dfs -ls / 需要有效票证才能连接到 namenode 服务;用户 hive 如何在没有有效票证的情况下连接到 namenode 服务?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...