Server version is also exposed through JMX - that might be a better
alternative than using four letter words, which will be deprecated in
future.

On Mon, Apr 3, 2017 at 10:16 AM, Keith Turner <[email protected]> wrote:

> A bit ago I wrote a blog post[1] about building shaded jars to run
> Fluo applications with Spark.  In this post I advocated for building
> the shaded jars with the versions of Fluo, Accumuo and ZooKeeper on
> the system.  For obtaining the ZooKeeper version, I suggested the
> following bash command in the post.
>
> ZOOKEEPER_SERVER=localhost
> ZOOKEEPER_VERSION=`echo status | nc $ZOOKEEPER_SERVER 2181 | grep
> version: | sed 's/.*version: \([0-9.]*\).*/\1/'`
>
> I was looking at this post recently and wondering if there is a better
> way to get this info for ZooKeeper.  Does anyone know a
> better/different way to accomplish this?
>
> Thanks
>
> Keith
>
> [1]: http://fluo.apache.org/blog/2016/12/22/spark-load/
>



-- 
Cheers
Michael.

Reply via email to