Yi,

I am trying to build Samza locally by following the steps provided by Navina.

As per those steps kafka will be installed after Zookeeper, I am getting  Error while starting Zookeeper after it is installed

Steps Followed :

Yes. You can clone apache/samza locally and build it with:

cd <samza-workspace>

gradle -b bootstrap.gradle

./gradlew clean build -x test

./gradlew publishToMavenLocal    ## This publishes a snapshot version of the latest apache/samza into your local maven repo

Then, head to hello-samza workspace and build again:

cd <hello-samza-workspace>

mvn clean package  ## This should create a build target

./bin/grid install zookeeper

./bin/grid start zookeeper

./bin/grid install kafka

./bin/grid start kafka

./bin/grid install yarn

./bin/grid start yarn

mkdir -p deploy/samza

tar -xvf ./target/hello-samza-*-SNAPSHOT-dist.tar.gz -C deploy/samza

NOTE : BTW From the above steps I could not execute " gradle -b bootstrap.gradle" since that command does not exists

Regards,

~Sri

-----Original Message-----
From: Yi Pan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 12, 2017 7:13 PM
To: [EMAIL PROTECTED]
Subject: Re: Connection timed out error while installing "Hello Samza"

Hi, Anantharam,

Could you confirm at which step your setup failed? It seems that your zookeeper server is running. Could you check to see whether your Kafka broker is running? You can either do a telnet localhost 9092 or do a ps auxww | grep kafka to see whether you got any broker running.

Sometimes, the Kafka service takes time to start on a single laptop. You can just try to run ./bin/grid start kafka

again to see whether the service is up.

Thanks!

-Yi

On Tue, Sep 12, 2017 at 11:38 AM, Anantharaman, Srinatha (Contractor) < [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>> wrote:

> Find below Zookeeper logs:

>

> 2017-09-12 17:05:19,124 [myid:] - INFO  [main:QuorumPeerConfig@101] -

> Reading configuration from: /app/home/eventsvc/samza-git/

> hello-samza/deploy/zookeeper/bin/../conf/zoo.cfg

> 2017-09-12 17:05:19,133 [myid:] - INFO

> [main:DatadirCleanupManager@78] - autopurge.snapRetainCount set to 3

> 2017-09-12 17:05:19,134 [myid:] - INFO

> [main:DatadirCleanupManager@79] - autopurge.purgeInterval set to 0

> 2017-09-12 17:05:19,134 [myid:] - INFO

> [main:DatadirCleanupManager@101]

> - Purge task is not scheduled.

> 2017-09-12 17:05:19,135 [myid:] - WARN  [main:QuorumPeerMain@113] -

> Either no config or no quorum defined in config, running  in

> standalone mode

> 2017-09-12 17:05:19,161 [myid:] - INFO  [main:QuorumPeerConfig@101] -

> Reading configuration from: /app/home/eventsvc/samza-git/

> hello-samza/deploy/zookeeper/bin/../conf/zoo.cfg

> 2017-09-12 17:05:19,162 [myid:] - INFO  [main:ZooKeeperServerMain@95]

> - Starting server

> 2017-09-12 17:05:19,175 [myid:] - INFO  [main:Environment@98] - Server

> environment:zookeeper.version=3.4.3-1240972, built on 02/06/2012 10:48

> GMT

> 2017-09-12 17:05:19,176 [myid:] - INFO  [main:Environment@98] - Server

> environment:host.name=codehdplak-po-r19p.sys.comcast.net

> 2017-09-12 17:05:19,176 [myid:] - INFO  [main:Environment@98] - Server

> environment:java.version=1.8.0_31

> 2017-09-12 17:05:19,177 [myid:] - INFO  [main:Environment@98] - Server

> environment:java.vendor=Oracle Corporation

> 2017-09-12 17:05:19,177 [myid:] - INFO  [main:Environment@98] - Server

> environment:java.home=/usr/lib/jvm/java-1.8.0-openjdk-1.

> 8.0.31-2.b13.el7.x86_64/jre

> 2017-09-12 17:05:19,178 [myid:] - INFO  [main:Environment@98] - Server

> environment:java.class.path=/app/home/eventsvc/samza-git/

> hello-samza/deploy/zookeeper/bin/../build/classes:/app/

> home/eventsvc/samza-git/hello-samza/deploy/zookeeper/bin/../

> build/lib/*.jar:/app/home/eventsvc/samza-git/hello-

> samza/deploy/zookeeper/bin/../lib/slf4j-log4j12-1.6.1.jar:/

> app/home/eventsvc/samza-git/hello-samza/deploy/zookeeper/






































NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB