title: How to start OpenTSDB?
body: <p>I'm following the <a href="http://opentsdb.net/getting-started.htm" rel="nofollow">getting started instructions</a> for OpenTSDB, but I get the below-shown errors when running the program. Can anyone help?</p>
  
  <p>When running command:</p>
  
  <pre><code>./build/tsdb tsd --port=4242 --staticroot=build/staticroot --cachedir="$tsdtemp"
  </code></pre>
  
  <p>I get this error:</p>
  
  <pre><code>java.net.ConnectException: Connection refused
      at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.6.0_20]
      at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:592) ~[na:1.6.0_20]
      at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1078) ~[zookeeper-3.3.1.jar:3.3.1-942149]
  2011-12-19 10:07:54,459 INFO  [main-SendThread(localhost:2181)] ClientCnxn: Opening socket connection to server localhost/127.0.0.1:2181
  2011-12-19 10:07:54,461 WARN  [main-SendThread(localhost:2181)] ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
  java.net.ConnectException: Connection refused
      at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.6.0_20]
      at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:592) ~[na:1.6.0_20]
      at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1078) ~[zookeeper-3.3.1.jar:3.3.1-942149]
  ^[[A2011-12-19 10:07:56,521 INFO  [main-SendThread(localhost:2181)] ClientCnxn: Opening socket connection to server localhost/127.0.0.1:2181
  2011-12-19 10:07:56,522 WARN  [main-SendThread(localhost:2181)] ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
  java.net.ConnectException: Connection refused
      at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.6.0_20]
      at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:592) ~[na:1.6.0_20]
      at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1078) ~[zookeeper-3.3.1.jar:3.3.1-942149]
  </code></pre>