apavlo / h-store

H-Store Distributed Main Memory OLTP Database System
https://hstore.cs.brown.edu
GNU General Public License v3.0
568 stars 174 forks source link

Failed to use hstore command line tool #214

Closed Meditator-hkx closed 7 years ago

Meditator-hkx commented 7 years ago

The fault information is listed as below:

kaixin@kaixin-VirtualBox:~/h-store$ ./hstore tpcc
17:17:39,116 ERROR - Failed to get connection to localhost:21212
Exception in thread "main" java.lang.RuntimeException: Failed to connect to HStoreSite at localhost:21212
    at edu.brown.terminal.HStoreTerminal.getClientConnection(HStoreTerminal.java:278)
    at edu.brown.terminal.HStoreTerminal.run(HStoreTerminal.java:116)
    at edu.brown.terminal.HStoreTerminal.main(HStoreTerminal.java:491)
kaixin@kaixin-VirtualBox:~/h-store$ ./hstore tpcc
17:18:00,373 ERROR - Failed to get connection to localhost:21212
Exception in thread "main" java.lang.RuntimeException: Failed to connect to HStoreSite at localhost:21212
    at edu.brown.terminal.HStoreTerminal.getClientConnection(HStoreTerminal.java:278)
    at edu.brown.terminal.HStoreTerminal.run(HStoreTerminal.java:116)
    at edu.brown.terminal.HStoreTerminal.main(HStoreTerminal.java:491)

However, that tpcc benchmark has been successful already when using

ant hstore-prepare -Dproject=tpcc and ant hstore-benchmark -Dproject=tpcc

The catalog info is given as below:

kaixin@kaixin-VirtualBox:~/h-store$ ant catalog-info -Dproject=tpcc
Buildfile: /home/kaixin/h-store/build.xml

catalog-info:
     [java] Catalog File:    /home/kaixin/h-store/tpcc.jar
     [java] # of Hosts:      1
     [java] # of Sites:      2
     [java] # of Partitions: 2
     [java] ----------------------------------------------
     [java] Cluster Information:
     [java] [00] HOST localhost 
     [java]      ├ SITE H00: [0]
     [java]      └ SITE H01: [1]
     [java] 

BUILD SUCCESSFUL
Total time: 2 seconds

I just don't understand why it couldn't connect the localhost since no password ssh has been set properly. Hope you can give me some help. If more information is needed, please tell me.

apavlo commented 7 years ago

Is the server actually running? Start up the system in one terminal:

$ ant hstore-benchmark -Dproject=tpcc -Dnoshutdown=true -Dnoexecute=true

Then connect to it with another terminal:

./hstore tpcc

Meditator-hkx commented 7 years ago

Oh, my fault. Your answer perfectly solved my problem. I'll remember to keep the server running later.