drill 表&&视图使用
  TEZNKK3IfmPf 2024年05月17日 35 0
1.  table 
 
  1. create table table_name as select * from storage_name.dbname.tablename
 
2. view
 
  1. create view view_name as select * from storage_name.dbname.tablename
 
3. 注意问题
 
如果需要进行存储,对应的storage 必须是可写的,不然会提示错误。
比如:默认的dfs 配置
  1. "root":{
  2. "location":"/",
  3. "writable":false,
  4. "defaultInputFormat":null
  5. },
  6. "tmp":{
  7. "location":"/tmp",
  8. "writable":true,
  9. "defaultInputFormat":null
  10. }
  11. },
只能在dfs.tmp 下进行view table 创建,其他地方不行
hadoop 类似如下:
 
  1. "root":{
  2. "location":"/",
  3. "writable":false,
  4. "defaultInputFormat":null
  5. },
  6. "userapps":{
  7. "location":"/userapps",
  8. "writable":true,
  9. "defaultInputFormat":null
  10. },
  11. "tmp":{
  12. "location":"/tmp",
  13. "writable":true,
  14. "defaultInputFormat":null
  15. }
其中userapps 是自己手工创建的同时设置可写,这样查询分析的数据就可以存储到hadoop ,方便后期的查询,归档。
【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2024年05月17日 0

暂无评论

推荐阅读
  TEZNKK3IfmPf   2023年11月14日   169   0   0 drillDocker
  TEZNKK3IfmPf   2024年05月17日   29   0   0 数据源drill
  TEZNKK3IfmPf   2023年11月14日   19   0   0 管理
  TEZNKK3IfmPf   2023年11月14日   34   0   0 数据库
  TEZNKK3IfmPf   2023年11月14日   24   0   0 APIdrill
  TEZNKK3IfmPf   2023年11月14日   17   0   0
  TEZNKK3IfmPf   2023年11月14日   74   0   0 mysql
  TEZNKK3IfmPf   2024年05月17日   36   0   0 drill
  TEZNKK3IfmPf   2023年11月14日   17   0   0 mysql
  TEZNKK3IfmPf   2023年11月14日   31   0   0 数据库
  TEZNKK3IfmPf   2023年11月14日   35   0   0 mysql
  TEZNKK3IfmPf   2023年11月14日   165   0   0 mysql
TEZNKK3IfmPf