Forum: Installation

Post: can't not run in mac 10.7.2 with voltdb 2.1 version

can't not run in mac 10.7.2 with voltdb 2.1 version
fly3q
Oct 25, 2011
I tried install the voltdb 2.1 in the mac 10.7.2, but it can't run, is anyone can help me. The following is some log of running voltdb.
...


INFO 02:02:35,747 [main] HOST: Loading native VoltDB code (voltdb-2.1). A confirmation message will follow if the loading is successful.
INFO 02:02:35,847 [main] HOST: Successfully loaded native VoltDB library voltdb-2.1.
INFO 02:02:36,120 [main] HOST: Initializing initiator ID: 1, SiteID: 0
INFO 02:02:36,138 [main] HOST: Database start action is Create.
INFO 02:02:36,138 [main] HOST: Listening for native wire protocol clients on port 21212.
INFO 02:02:36,139 [main] HOST: Listening for admin wire protocol clients on port 21211.
INFO 02:02:36,139 [main] HOST: Local machine HTTP monitoring is listening on port 8080.
INFO 02:02:36,139 [main] HOST: Json API over HTTP enabled at path /api/1.0/, listening on port 8080.
INFO 02:02:36,180 [main] HOST: Available JVM arguments: -Xserver -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp -XX:-ReduceInitialCardMarks -Xmx1024m -Dlog4j.configuration=file:///Users/dblabdb/Desktop/nosql/voltdb/voltdb-2.1/bin/../voltdb/log4j.xml -Djava.library.path=/Users/dblabdb/Desktop/nosql/voltdb/voltdb-2.1/bin/../voltdb
INFO 02:02:36,181 [main] HOST: Maximum usable Java heap set to 910 mb.
INFO 02:02:36,182 [main] HOST: Client authentication is not enabled. Anonymous clients accepted.
INFO 02:02:36,182 [main] HOST: No schedule set for automated snapshots.
INFO 02:02:36,183 [main] HOST: CPU INFO: 2 Cores, 1 Sockets, 2 Hardware Threads
INFO 02:02:36,184 [main] HOST: CPU DESC: Intel Core 2 Duo 2.4 GHz
INFO 02:02:36,184 [main] HOST: HOST MEMORY (MB): 4096
INFO 02:02:36,184 [main] HOST: OS PROFILE: Mac OS X 10.7.2 x86_64 en_US
INFO 02:02:36,184 [main] HOST: JAVA VERSION: 1.6.0_26
INFO 02:02:36,185 [main] HOST: JAVA RUNTIME: Java(TM) SE Runtime Environment (1.6.0_26-b03-383-11A511)
INFO 02:02:36,185 [main] HOST: JAVA VM: Java HotSpot(TM) 64-Bit Server VM (20.1-b02-383, mixed mode)
ERROR 02:02:36,194 [main] ZK-SERVER: Thread Thread[main,5,main] died
java.lang.NullPointerException
at org.voltdb.RealVoltDB.collectLocalNetworkMetadata(RealVoltDB.java:634)
at org.voltdb.RealVoltDB.logDebuggingInfo(RealVoltDB.java:936)
at org.voltdb.RealVoltDB.initialize(RealVoltDB.java:492)
at org.voltdb.VoltDB.initialize(VoltDB.java:509)
at org.voltdb.VoltDB.main(VoltDB.java:491)
Hi fly3q, That looks a bug
aweisberg
Oct 25, 2011
Hi fly3q,
That looks a bug due to java.net.Inet4Address returning null from getHostAddress() for one of your network interfaces. Can you show me the output of 'ifconfig -a'?

If you specify a network interface as a parameter to VoltDB with "externalinterface 127.0.0.1" where the IP is the interface you want to use it might work. You may also have to specify "internalinterface 127.0.0.1". If you don't have an interface with an IP then 127.0.0.1 should work.


Let me know if this doesn't fix it. I created https://issues.voltdb.com/browse/ENG-1886 to track this issue.

-Ariel
hi aweisberg: I met the same
Johnson
Nov 15, 2011
Hi fly3q,
That looks a bug due to java.net.Inet4Address returning null from getHostAddress() for one of your network interfaces. Can you show me the output of 'ifconfig -a'?

If you specify a network interface as a parameter to VoltDB with "externalinterface 127.0.0.1" where the IP is the interface you want to use it might work. You may also have to specify "internalinterface 127.0.0.1". If you don't have an interface with an IP then 127.0.0.1 should work.

Let me know if this doesn't fix it. I created https://issues.voltdb.com/browse/ENG-1886 to track this issue.

-Ariel


hi aweisberg:
I met the same error
but I set the "externalinterface 127.0.0.1" & "internalinterface 127.0.0.1" as you mentioned, it's worked. The Server started.