Options
- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How to access node names with space in zookeeper
Labels:
- Labels:
-
Apache NiFi
Contributor
Created ‎05-02-2017 12:07 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I want to access the zookeeper using zkCli.sh and using following command:
ls /
This shows list of nodes connected. When I further do ls node1, I am able to see next internal node. (say subnode1).
If the subnode1 is named "sub node1" (with a white space in between), how do I access the sub node1. It shows message that file/directory not found.
1 REPLY 1
Super Guru
Created ‎05-02-2017 12:23 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Jatin Kheradiya try this way
/usr/hdp/current/zookeeper-server/bin/zkCli.sh -server localhost:2181 -c create "/hello 1" "hvalue" /usr/hdp/current/zookeeper-server/bin/zkCli.sh -server localhost:2181 -c get "/hello 1"
