Skip to content

Commit 9c23104

Browse files
committed
address comments
1 parent ef6a845 commit 9c23104

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

parquet-cli/README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ You can build this project using maven:
3131
The build produces a shaded Jar that can be run using the `hadoop` command:
3232

3333
```
34-
hadoop jar parquet-cli-1.12.3-runtime.jar org.apache.parquet.cli.Main
34+
hadoop jar parquet-cli-1.16.0-runtime.jar org.apache.parquet.cli.Main
3535
```
3636

3737
For a shorter command-line invocation, add an alias to your shell like this:
3838

3939
```
40-
alias parquet="hadoop jar /path/to/parquet-cli-1.12.3-runtime.jar org.apache.parquet.cli.Main --dollar-zero parquet"
40+
alias parquet="hadoop jar /path/to/parquet-cli-1.16.0-runtime.jar org.apache.parquet.cli.Main --dollar-zero parquet"
4141
```
4242

4343
### Running without Hadoop
@@ -51,7 +51,7 @@ To run from the target directory instead of using the `hadoop` command, first co
5151
Then, run the command-line and add `target/dependencies/*` to the classpath:
5252

5353
```
54-
java -cp 'target/parquet-cli-1.12.3.jar:target/dependency/*' org.apache.parquet.cli.Main
54+
java -cp 'target/parquet-cli-1.16.0.jar:target/dependency/*' org.apache.parquet.cli.Main
5555
```
5656

5757
Note that you shouldn't include the runtime jar used above into the classpath in this case.
@@ -79,6 +79,8 @@ Usage: parquet [options] [command] [command options]
7979
8080
help
8181
Retrieves details on the functions of other commands
82+
version
83+
Print version of the Parquet CLI tool
8284
meta
8385
Print a Parquet file's metadata
8486
pages
@@ -126,8 +128,8 @@ Usage: parquet [options] [command] [command options]
126128
127129
Examples:
128130
129-
# print information for create
130-
parquet help meta
131+
# print information for version
132+
parquet help version
131133
132134
See 'parquet help <command>' for more information on a specific command.
133135
```

parquet-cli/src/main/java/org/apache/parquet/cli/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public class Main extends Configured implements Tool {
8787
this.help = new Help(jc, console);
8888
jc.setProgramName(DEFAULT_PROGRAM_NAME);
8989
jc.addCommand("help", help, "-h", "-help", "--help");
90-
jc.addCommand("version", new ShowVersionCommand(console));
90+
jc.addCommand("version", new ShowVersionCommand(console), "-version", "--version");
9191
jc.addCommand("meta", new ParquetMetadataCommand(console));
9292
jc.addCommand("pages", new ShowPagesCommand(console));
9393
jc.addCommand("dictionary", new ShowDictionaryCommand(console));

0 commit comments

Comments
 (0)