报错内容:
ERROR: AnalysisException: Unable to INSERT into target table (bt.user_action_type) because Impala does not have WRITE access to at least one HDFS path: hdfs://m01:8020/warehouse/bt/user_action_type/dt=20200607/operator=LT/action_type=order
解决办法:
su - hdfs -s /bin/bash -c "hdfs dfs -chmod 777 -R /warehouse/bt/user_action_type"
invalidate metadata
#上个不行的话试试下一个
su - hdfs -s /bin/bash -c "hdfs dfs -chown -R root:supergroup /warehouse/bt/user_action_type"
invalidate metadata
OK!!!