hiveserver2已启动并正在运行,我可以从http://localhost:10002/hiveserver2.jsp进行检查。
蜂巢也在运行。
启动beeline N = 10000
m = np.random.randint(2, size=N)
a = np.random.randint(N, size=N)*1.0
np.put(a, np.random.choice(range(N), N//2, replace=False), np.inf)
%timeit argmin_ma(a, m)
532 µs ± 70.3 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each)
%timeit argmin_ma2(a, m)
132 µs ± 6.61 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each)
之后,我想通过beeline连接到hive JDBC:
>beeline
!connect jdbc:hive2://localhost:10000/default
和hiveuser
在hive-site.xml上配置,在beeline-site.xml中也相同
我遇到了这个错误:
hivepassword
这是hive-site.xml内容
Error: Could not open client transport with JDBC Uri: jdbc:hive2://localhost:10000/default: Failed to open new session: java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationExce
ption): User: user is not allowed to impersonate hiveuser (state=08S01,code=0)
我错过了什么,或者有什么解决方案?