Linux command
orc-tools 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Show ORC file metadata
orc-metadata [file.orc]
Show file contents
orc-contents [file.orc]
Get file statistics
orc-statistics [file.orc]
Convert CSV to ORC
orc-tools convert [data.csv] -o [output.orc]
Scan ORC file
orc-scan [file.orc]
Merge ORC files
orc-tools merge [file1.orc] [file2.orc] -o [merged.orc]
说明
orc-tools is a collection of utilities for working with Apache ORC (Optimized Row Columnar) files. ORC is a columnar storage format optimized for Hadoop workloads. The tools allow inspection, conversion, and manipulation of ORC files.
参数
- metadata
- Show file metadata.
- contents
- Display contents.
- statistics
- Show statistics.
- convert
- Convert to ORC.
- scan
- Scan and validate.
- merge
- Merge files.
- -o _file_
- Output file.
FAQ
What is the orc-tools command used for?
orc-tools is a collection of utilities for working with Apache ORC (Optimized Row Columnar) files. ORC is a columnar storage format optimized for Hadoop workloads. The tools allow inspection, conversion, and manipulation of ORC files.
How do I run a basic orc-tools example?
Run `orc-metadata [file.orc]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does metadata do in orc-tools?
Show file metadata.