Skip to content

Commit

Permalink
current without r
Browse files Browse the repository at this point in the history
  • Loading branch information
pandalanax committed Feb 25, 2024
1 parent 0dba9fd commit 3ec2000
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ It prints out the xml ready to be pasted into the configuration file.


## Usage
search all options from `hdfs-site.xml` on version `3.3.4`:
search all options from `hdfs-site.xml` on version `r3.3.4`:
```bash
hdfshelper -m hdfs -v 3.3.4
hdfshelper -m hdfs -v r3.3.4
```

copy the output to clipboard (macOS):
Expand All @@ -35,9 +35,9 @@ Usage of hdfshelper:
- yarn [yarn-site.xml]
- hdfs [hdfs-site.xml] (default "hdfs")
-v string
The version of hadoop in format: x.y.z (e.g. 3.3.6)(shorthand) (default "current")
The version of hadoop in format: rx.y.z (e.g. r3.3.6)(shorthand) (default "current")
-version string
The version of hadoop in format: x.y.z (e.g. 3.3.6) (default "current")
The version of hadoop in format: rx.y.z (e.g. r3.3.6) (default "current")
```

## Building
Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ var (
)

func getUrls(version string) map[string]string {
baseUrl := "https://hadoop.apache.org/docs/r" // note the r
baseUrl := "https://hadoop.apache.org/docs/" // note the r
modes := map[string]string{
"core": baseUrl + version + "/hadoop-project-dist/hadoop-common/core-default.xml",
"hdfs": baseUrl + version + "/hadoop-project-dist/hadoop-hdfs/hdfs-default.xml",
Expand All @@ -58,7 +58,7 @@ func main() {
- yarn [yarn-site.xml]
- hdfs [hdfs-site.xml]`
defaultVersion = "current"
usageVersion = "The version of hadoop in format: x.y.z (e.g. 3.3.6)"
usageVersion = "The version of hadoop in format: rx.y.z (e.g. r3.3.6)"
)
flag.StringVar(&mode, "mode", defaultMode, usageMode)
flag.StringVar(&mode, "m", defaultMode, usageMode+"(shorthand)")
Expand Down

0 comments on commit 3ec2000

Please sign in to comment.