From 3ec2000ba4bffc8cb87012e810819864dd77a006 Mon Sep 17 00:00:00 2001 From: pandalanax Date: Sun, 25 Feb 2024 17:40:32 +0100 Subject: [PATCH] current without r --- README.md | 8 ++++---- main.go | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index e1efac6..1b003c1 100644 --- a/README.md +++ b/README.md @@ -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): @@ -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 diff --git a/main.go b/main.go index 67a5b65..6d2013b 100644 --- a/main.go +++ b/main.go @@ -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", @@ -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)")