Why Four Letter Commands Don't Work With Linux netcat Command When Secure Netty Configurations Are Enabled at Zookeeper Server?
Question
Why four letter commands do not work with linux netcat command when secure netty configurations are enabled at Zookeeper server?
For example,
echo stat |netcat host port
Answer
Linux netcat command does not have option to communicate Zookeeper server securely, so it cannot support Zookeeper four letter commands when secure netty configurations are enabled.
To avoid this problem, user can use below Java API to execute four letter commands.
org.apache.zookeeper.client.FourLetterWordMain
For example,
String[] args = new String[]{host, port, "stat"}; org.apache.zookeeper.client.FourLetterWordMain.main(args);
netcat command should be used only with non secure netty configuration.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot