File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
docs/modules/hdfs/examples/getting_started Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ kubectl rollout status --watch --timeout=5m statefulset/webhdfs
118118
119119file_status () {
120120 # tag::file-status[]
121- kubectl exec -n default webhdfs-0 -- curl -s -XGET " http://simple-hdfs-namenode-default-0.simple-hdfs-namenode-default.default.svc.cluster.local:9870/webhdfs/v1/?op=LISTSTATUS"
121+ kubectl exec -n default webhdfs-0 -- curl -s -XGET " http://simple-hdfs-namenode-default-0.simple-hdfs-namenode-default-headless .default.svc.cluster.local:9870/webhdfs/v1/?op=LISTSTATUS"
122122 # end::file-status[]
123123}
124124
@@ -140,7 +140,7 @@ kubectl cp -n default ./testdata.txt webhdfs-0:/tmp
140140create_file () {
141141 # tag::create-file[]
142142 kubectl exec -n default webhdfs-0 -- \
143- curl -s -XPUT -T /tmp/testdata.txt " http://simple-hdfs-namenode-default-0.simple-hdfs-namenode-default.default.svc.cluster.local:9870/webhdfs/v1/testdata.txt?user.name=stackable&op=CREATE&noredirect=true"
143+ curl -s -XPUT -T /tmp/testdata.txt " http://simple-hdfs-namenode-default-0.simple-hdfs-namenode-default-headless .default.svc.cluster.local:9870/webhdfs/v1/testdata.txt?user.name=stackable&op=CREATE&noredirect=true"
144144 # end::create-file[]
145145}
146146
@@ -159,7 +159,7 @@ echo "Created file: $found_file with status $(file_status)"
159159echo " Delete file"
160160delete_file () {
161161 # tag::delete-file[]
162- kubectl exec -n default webhdfs-0 -- curl -s -XDELETE " http://simple-hdfs-namenode-default-0.simple-hdfs-namenode-default.default.svc.cluster.local:9870/webhdfs/v1/testdata.txt?user.name=stackable&op=DELETE"
162+ kubectl exec -n default webhdfs-0 -- curl -s -XDELETE " http://simple-hdfs-namenode-default-0.simple-hdfs-namenode-default-headless .default.svc.cluster.local:9870/webhdfs/v1/testdata.txt?user.name=stackable&op=DELETE"
163163 # end::delete-file[]
164164}
165165
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ kubectl rollout status --watch --timeout=5m statefulset/webhdfs
118118
119119file_status () {
120120 # tag::file-status[]
121- kubectl exec -n default webhdfs-0 -- curl -s -XGET " http://simple-hdfs-namenode-default-0.simple-hdfs-namenode-default.default.svc.cluster.local:9870/webhdfs/v1/?op=LISTSTATUS"
121+ kubectl exec -n default webhdfs-0 -- curl -s -XGET " http://simple-hdfs-namenode-default-0.simple-hdfs-namenode-default-headless .default.svc.cluster.local:9870/webhdfs/v1/?op=LISTSTATUS"
122122 # end::file-status[]
123123}
124124
@@ -140,7 +140,7 @@ kubectl cp -n default ./testdata.txt webhdfs-0:/tmp
140140create_file () {
141141 # tag::create-file[]
142142 kubectl exec -n default webhdfs-0 -- \
143- curl -s -XPUT -T /tmp/testdata.txt " http://simple-hdfs-namenode-default-0.simple-hdfs-namenode-default.default.svc.cluster.local:9870/webhdfs/v1/testdata.txt?user.name=stackable&op=CREATE&noredirect=true"
143+ curl -s -XPUT -T /tmp/testdata.txt " http://simple-hdfs-namenode-default-0.simple-hdfs-namenode-default-headless .default.svc.cluster.local:9870/webhdfs/v1/testdata.txt?user.name=stackable&op=CREATE&noredirect=true"
144144 # end::create-file[]
145145}
146146
@@ -159,7 +159,7 @@ echo "Created file: $found_file with status $(file_status)"
159159echo " Delete file"
160160delete_file () {
161161 # tag::delete-file[]
162- kubectl exec -n default webhdfs-0 -- curl -s -XDELETE " http://simple-hdfs-namenode-default-0.simple-hdfs-namenode-default.default.svc.cluster.local:9870/webhdfs/v1/testdata.txt?user.name=stackable&op=DELETE"
162+ kubectl exec -n default webhdfs-0 -- curl -s -XDELETE " http://simple-hdfs-namenode-default-0.simple-hdfs-namenode-default-headless .default.svc.cluster.local:9870/webhdfs/v1/testdata.txt?user.name=stackable&op=DELETE"
163163 # end::delete-file[]
164164}
165165
Original file line number Diff line number Diff line change 1111 dfsReplication : 1
1212 nameNodes :
1313 config :
14- listenerClass : external-stable # This exposes your Stacklet outside of Kubernetes. Remove this configuration if this is not desired
14+ listenerClass : external-unstable # This exposes your Stacklet outside of Kubernetes. Remove this configuration if this is not desired
1515 roleGroups :
1616 default :
1717 replicas : 2
Original file line number Diff line number Diff line change 1111 dfsReplication: 1
1212 nameNodes:
1313 config:
14- listenerClass: external-stable # This exposes your Stacklet outside of Kubernetes. Remove this configuration if this is not desired
14+ listenerClass: external-unstable # This exposes your Stacklet outside of Kubernetes. Remove this configuration if this is not desired
1515 roleGroups:
1616 default:
1717 replicas: 2
You can’t perform that action at this time.
0 commit comments