1,启动hiveserver2报错
bash
2024-08-20T22:21:17,399 INFO [main] thrift.ThriftCLIService: Starting ThriftBinaryCLIService on port 10000 with 5...500 worker threads
2024-08-20T22:21:17,400 INFO [main] service.AbstractService: Service:HiveServer2 is started.
2024-08-20T22:21:17,410 ERROR [main] server.HiveServer2: Error starting priviledge synchonizer:
java.lang.SecurityException: java.io.IOException: {{hadoop_conf_dir}}/hdfs_jaas.conf (No such file or directory)
at sun.security.provider.ConfigFile$Spi.<init>(ConfigFile.java:137) ~[?:1.8.0_333]
at sun.security.provider.ConfigFile.<init>(ConfigFile.java:102) ~[?:1.8.0_333]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_333]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_333]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_333]
修改hadoop的etc/hadoop/hadoop-env.sh 中的export HADOOP_OPTS="$HADOOP_OPTS -Djava.security.auth.login.config配置的路径,之前配置有误