Hi Yang,
Dong's requirement is to run 2 instances in same box, so that one could
for testing and one to serve client.
Per our discussion, I would like to suggest dong to point the second
instance's metadata to different one (we have zookeeper locker for job
engine based on metadata.).
@Dong, could you try it your side?
Thanks.
Best Regards!
---------------------
Luke Han
2015-04-29 16:43 GMT+08:00 Li Yang <[email protected]>:
> For the second instance you need to set "kylin.server.mode=query" in
> kylin.properties. By default the value is "all" which means the instance
> play as both query engine and build engine. However only one build engine
> is allowed within a kylin cluster.
>
> We need to document this some where...
>
> On Wed, Apr 29, 2015 at 9:27 AM, dong wang <[email protected]> wrote:
>
> > Hi luke, do u mean that we must create multiple kylin instances in
> > DIFFERENT machines of a cluster? currently, I am trying to create 2
> kylin
> > instances in a pseudo CDH environment on one machine for testing purpose
> > first~
> >
> > 2015-04-28 20:18 GMT+08:00 Luke Han <[email protected]>:
> >
> > > looks like your 2nd instance talking to localhost zookeeper:
> > >
> > > Opening socket connection to server localhost/
> > > 127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown
> er
> > > ror)
> > >
> > > could you double check for the host information?
> > >
> > >
> > > Best Regards!
> > > ---------------------
> > >
> > > Luke Han
> > >
> > > 2015-04-28 16:11 GMT+08:00 dong wang <[email protected]>:
> > >
> > > > First, I changed all the ports that appear in the tomcat/server.xml
> to
> > > > avoid conflicts
> > > > Second, changed kylin.rest.servers to the same as that of the tomcat
> > for
> > > > this instance in conf/kylin.properties
> > > >
> > > > however, when starting the 2nd tomcat instance, it throws error
> > > information
> > > > as below:
> > > >
> > > > [Thread-9]:[2015-04-28
> > > >
> > > >
> > >
> >
> 15:44:34,366][INFO][org.apache.zookeeper.ZooKeeper.<init>(ZooKeeper.java:438)]
> > > > - Initiating client connection, c
> > > > onnectString=localhost:2181 sessionTimeout=60000
> > > > watcher=org.apache.curator.ConnectionState@68702fc0
> > > > [Thread-9-SendThread(localhost:2181)]:[2015-04-28
> > > >
> > > >
> > >
> >
> 15:44:34,405][INFO][org.apache.zookeeper.ClientCnxn$SendThread.logStartConnect(Client
> > > > Cnxn.java:975)] - Opening socket connection to server localhost/
> > > > 127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown
> > er
> > > > ror)
> > > > [Thread-9-SendThread(localhost:2181)]:[2015-04-28
> > > >
> > > >
> > >
> >
> 15:44:34,409][INFO][org.apache.zookeeper.ClientCnxn$SendThread.primeConnection(Client
> > > > Cnxn.java:852)] - Socket connection established to localhost/
> > > > 127.0.0.1:2181,
> > > > initiating session
> > > > [Thread-9-SendThread(localhost:2181)]:[2015-04-28
> > > >
> > > >
> > >
> >
> 15:44:34,423][INFO][org.apache.zookeeper.ClientCnxn$SendThread.onConnected(ClientCnxn
> > > > .java:1235)] - Session establishment complete on server localhost/
> > > > 127.0.0.1:2181, sessionid = 0x14cf8ec32bb0081, negotiated timeout =
> 4
> > > > 0000
> > > > [Thread-9-EventThread]:[2015-04-28
> > > >
> > > >
> > >
> >
> 15:44:34,441][INFO][org.apache.curator.framework.state.ConnectionStateManager.postState(ConnectionSt
> > > > ateManager.java:228)] - State change: CONNECTED
> > > > [Thread-9]:[2015-04-28
> > > >
> > > >
> > >
> >
> 15:44:37,451][WARN][org.apache.kylin.job.impl.threadpool.DefaultScheduler.init(DefaultScheduler.java:205)]
> > > > - fai
> > > > l to acquire lock, scheduler has not been started
> > > > [Thread-9]:[2015-04-28
> > > >
> > > >
> > >
> >
> 15:44:37,456][INFO][org.apache.zookeeper.ZooKeeper.close(ZooKeeper.java:684)]
> > > > - Session: 0x14cf8ec32bb0081 close
> > > > d
> > > > [Thread-9-EventThread]:[2015-04-28
> > > >
> > > >
> > >
> >
> 15:44:37,456][INFO][org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:512)]
> > > > - EventThr
> > > > ead shut down
> > > > [Thread-9]:[2015-04-28
> > > >
> > > >
> > >
> >
> 15:44:37,459][ERROR][org.apache.kylin.rest.controller.JobController$1.run(JobController.java:87)]
> > > > - scheduler ha
> > > > s not been started
> > > >
> > >
> >
>