Skip to content

Commit aec271a

Browse files
committed
chore: replace json_pp with jq in getting started scripts
1 parent 70b20e3 commit aec271a

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

docs/modules/hbase/examples/getting_started/getting_started.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ version() {
135135
echo "Check cluster status..."
136136
# tag::cluster-status[]
137137
kubectl 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

141141
echo "Check table via REST API..."
@@ -148,13 +148,13 @@ kubectl exec -n default simple-hbase-restserver-default-0 \
148148

149149
# tag::get-table[]
150150
kubectl 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

154154
get_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

docs/modules/hbase/examples/getting_started/getting_started.sh.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ version() {
135135
echo "Check cluster status..."
136136
# tag::cluster-status[]
137137
kubectl 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

141141
echo "Check table via REST API..."
@@ -148,13 +148,13 @@ kubectl exec -n default simple-hbase-restserver-default-0 \
148148

149149
# tag::get-table[]
150150
kubectl 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

154154
get_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

0 commit comments

Comments
 (0)