Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试访问配置单元表并将结果转储回文本文件。当我尝试这样做时,我总是被拒绝许可?有什么我想念的吗?
bash-3.00$ 'select * from ATTRIBUTE_DATA_REALTIME LIMIT 10' > test.txt bash: test.txt: Permission denied
在这种情况下我需要什么许可?还是我的查询有误?
首先 - 你错过了一个hive -e. 有了你现在所拥有的,Bash 将寻找一个名为select * from ATTRIBUTE_DATA_REALTIME LIMIT 10!
hive -e
select * from ATTRIBUTE_DATA_REALTIME LIMIT 10
但是对于权限问题,有两种可能:
test.txt
ls -l test.txt
ls -ld .