File tree Expand file tree Collapse file tree
docs/modules/hbase/examples/getting_started Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ version() {
135135echo " Check cluster status..."
136136# tag::cluster-status[]
137137kubectl exec -n default simple-hbase-restserver-default-0 \
138- -- curl -s -XGET -H " Accept: application/json" " http://simple-hbase-restserver-default-headless:8080/status/cluster" | json_pp
138+ -- curl -s -XGET -H " Accept: application/json" " http://simple-hbase-restserver-default-headless:8080/status/cluster" | jq
139139# end::cluster-status[]
140140
141141echo " Check table via REST API..."
@@ -148,13 +148,13 @@ kubectl exec -n default simple-hbase-restserver-default-0 \
148148
149149# tag::get-table[]
150150kubectl exec -n default simple-hbase-restserver-default-0 \
151- -- curl -s -XGET -H " Accept: application/json" " http://simple-hbase-restserver-default-headless:8080/users/schema" | json_pp
151+ -- curl -s -XGET -H " Accept: application/json" " http://simple-hbase-restserver-default-headless:8080/users/schema" | jq
152152# end::get-table[]
153153
154154get_all () {
155155 # tag::get-tables[]
156156 kubectl exec -n default simple-hbase-restserver-default-0 \
157- -- curl -s -XGET -H " Accept: application/json" " http://simple-hbase-restserver-default-headless:8080/" | json_pp
157+ -- curl -s -XGET -H " Accept: application/json" " http://simple-hbase-restserver-default-headless:8080/" | jq
158158 # end::get-tables[]
159159}
160160
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ version() {
135135echo " Check cluster status..."
136136# tag::cluster-status[]
137137kubectl exec -n default simple-hbase-restserver-default-0 \
138- -- curl -s -XGET -H " Accept: application/json" " http://simple-hbase-restserver-default-headless:8080/status/cluster" | json_pp
138+ -- curl -s -XGET -H " Accept: application/json" " http://simple-hbase-restserver-default-headless:8080/status/cluster" | jq
139139# end::cluster-status[]
140140
141141echo " Check table via REST API..."
@@ -148,13 +148,13 @@ kubectl exec -n default simple-hbase-restserver-default-0 \
148148
149149# tag::get-table[]
150150kubectl exec -n default simple-hbase-restserver-default-0 \
151- -- curl -s -XGET -H " Accept: application/json" " http://simple-hbase-restserver-default-headless:8080/users/schema" | json_pp
151+ -- curl -s -XGET -H " Accept: application/json" " http://simple-hbase-restserver-default-headless:8080/users/schema" | jq
152152# end::get-table[]
153153
154154get_all () {
155155 # tag::get-tables[]
156156 kubectl exec -n default simple-hbase-restserver-default-0 \
157- -- curl -s -XGET -H " Accept: application/json" " http://simple-hbase-restserver-default-headless:8080/" | json_pp
157+ -- curl -s -XGET -H " Accept: application/json" " http://simple-hbase-restserver-default-headless:8080/" | jq
158158 # end::get-tables[]
159159}
160160
You can’t perform that action at this time.
0 commit comments