且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

是否有相当于“SHOW TABLES"的阿帕奇猪?

更新时间:2023-11-28 23:34:28

Pig 没有表格的概念.它可以读取 HDFS 文件系统上的任何文件并将解析结果存储在关系中.

Pig doesn't have a concept of tables. It can read any file that is on your HDFS filesystem and stores the parsed result in a relation.

请注意,您还可以从 grunt shell 运行 HDFS 文件系统 命令

Note that you can also run HDFS filesystem commands from the grunt shell

***先熟悉 HDFS,并确保首先可以轻松浏览文件系统,以便找到要使用 Pig 处理的数据.

It's probably best you familiarise yourself with HDFS first and make sure you can comfortably navigate the filesystem first so you can find what data you want to process with Pig.