查看hadoop版本,hadoop version:
hdfs根据时间排序来查看文件:
hdfs dfs -ls /tmp |sort -r -k6,7
查看hive版本,hive:
查看hive进程:
ps -aux|grep hive
或者
netstat -lnp|grep 9083
netstat -lnp|grep 10000
退出hive:
通过kill -9杀掉进程
启动hive:
nohup hive --service metastore >> ~/metastore.log 2>&1 &
nohup hive --service hiveserver2 >> ~/hiveserver2.log 2>&1 &
删除hive数据库报错:
ERROR : FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. InvalidOperationException(message:Database ei_dim is not empty. One or more tables exist.)
强制删除DROP database ei_dim cascade;:
查看spark版本,spark-shell:
查看jdk版本,java -version:
查看kafka版本:
hadoop 3.0版本:yarn动态调整优先级
yarn application -appId application_1643078379487_0002 -updatePriority 66