Errors happened when running TachyonMaster.java

2 views
Skip to first unread message

guanchao wen

unread,
Sep 18, 2014, 9:22:59 AM9/18/14
to tachyo...@googlegroups.com

In the source code of Tachyon, I find there are 5 java files containing entry function(main function).
They are:TachyonMaster.java, TachyonWorker.java, TFsShell.java, Format.java and Version.java. And I think the key files are TachyonMaster.java, TachyonWorker.java and Format.java.
Now I want to debug and track these files. I know that it is first to run Format.java with the arguments WORKER OR MASTER, and it is OK.  And what about next?
I ran TachyonMaster.java. But errors happened.The error message is as follows:
14/09/19 05:20:20 WARN : tachyon.home is not set. Using /mnt/tachyon_default_home as the default value.
14/09/19 05:20:20 INFO : Image /mnt/tachyon_default_home/journal/image.data does not exist.
14/09/19 05:20:20 INFO : Edit Log /mnt/tachyon_default_home/journal/log.data does not exist.
14/09/19 05:20:20 INFO : Creating the image file: /mnt/tachyon_default_home/journal/image.data.tmp
14/09/19 05:20:20 INFO : Succefully created the image file: /mnt/tachyon_default_home/journal/image.data.tmp
14/09/19 05:20:20 INFO : Renamed /mnt/tachyon_default_home/journal/image.data.tmp to /mnt/tachyon_default_home/journal/image.data
14/09/19 05:20:20 INFO : Creating edit log file /mnt/tachyon_default_home/journal/log.data
14/09/19 05:20:20 INFO : Created file /mnt/tachyon_default_home/journal/log.data
14/09/19 05:20:20 ERROR : Could not create ServerSocket on address localhost/127.0.0.1:19998.
org
.apache.thrift.transport.TTransportException: Could not create ServerSocket on address localhost/127.0.0.1:19998.
    at org
.apache.thrift.transport.TNonblockingServerSocket.<init>(TNonblockingServerSocket.java:89)
    at org
.apache.thrift.transport.TNonblockingServerSocket.<init>(TNonblockingServerSocket.java:72)
    at tachyon
.master.TachyonMaster.setup(TachyonMaster.java:168)
    at tachyon
.master.TachyonMaster.start(TachyonMaster.java:220)
    at tachyon
.master.TachyonMaster.main(TachyonMaster.java:52)
14/09/19 05:20:20 ERROR : Could not create ServerSocket on address localhost/127.0.0.1:19998.
org
.apache.thrift.transport.TTransportException: Could not create ServerSocket on address localhost/127.0.0.1:19998.
    at org
.apache.thrift.transport.TNonblockingServerSocket.<init>(TNonblockingServerSocket.java:89)
    at org
.apache.thrift.transport.TNonblockingServerSocket.<init>(TNonblockingServerSocket.java:72)
    at tachyon
.master.TachyonMaster.setup(TachyonMaster.java:168)
    at tachyon
.master.TachyonMaster.start(TachyonMaster.java:220)
    at tachyon
.master.TachyonMaster.main(TachyonMaster.java:52)
Exception in thread "main" java.lang.RuntimeException: org.apache.thrift.transport.TTransportException: Could not create ServerSocket on address localhost/127.0.0.1:19998.
    at tachyon
.util.CommonUtils.runtimeException(CommonUtils.java:475)
    at tachyon
.master.TachyonMaster.start(TachyonMaster.java:226)
    at tachyon
.master.TachyonMaster.main(TachyonMaster.java:52)
Caused by: org.apache.thrift.transport.TTransportException: Could not create ServerSocket on address localhost/127.0.0.1:19998.
    at org
.apache.thrift.transport.TNonblockingServerSocket.<init>(TNonblockingServerSocket.java:89)
    at org
.apache.thrift.transport.TNonblockingServerSocket.<init>(TNonblockingServerSocket.java:72)
    at tachyon
.master.TachyonMaster.setup(TachyonMaster.java:168)
    at tachyon
.master.TachyonMaster.start(TachyonMaster.java:220)
   
... 1 more

Henry Saputra

unread,
Sep 18, 2014, 6:00:14 PM9/18/14
to guanchao wen, tachyo...@googlegroups.com
Can you check with 'netstat -ban | grep tcp' to see if port 19998 is being used?
> --
> You received this message because you are subscribed to the Google Groups
> "Tachyon Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to tachyon-user...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

guanchao wen

unread,
Sep 19, 2014, 1:51:13 AM9/19/14
to tachyo...@googlegroups.com
Thanks Henry Saputra.
Yes, you are right. I started the TachyonMaster twice, so the port 19998 was being used by the first TachyonMaster thread. Now I killed the TachyonMaster thread  and restarted to run TachyonMaster.java, it worked well.


在 2014年9月18日星期四UTC+8下午9时22分59秒,guanchao wen写道:
Caused by: org.apache.thrift.transport.TTransportException: Could not create ServerSocket on address localhost/<span st
...

guanchao wen

unread,
Sep 19, 2014, 1:54:44 AM9/19/14
to tachyo...@googlegroups.com
I want to ask one more question. When I was running Format.java file, it worked well. But it showed the message that "tachyon.home is not set. Using /mnt/tachyon_default_home as the default value." In the source code of Tachyon ,where can I set the tachyon.home ? Thanks.

在 2014年9月18日星期四UTC+8下午9时22分59秒,guanchao wen写道:
Caused by: org.apache.thrift.transport.TTransportException: Could not create ServerSocket on address localhost/<span st
...

Haoyuan Li

unread,
Sep 22, 2014, 1:22:19 AM9/22/14
to guanchao wen, tachyo...@googlegroups.com
You can set it in conf/tachyon-env.sh .

Best,

Haoyuan

--
You received this message because you are subscribed to the Google Groups "Tachyon Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tachyon-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Haoyuan Li
AMPLab, EECS, UC Berkeley

guanchao wen

unread,
Sep 24, 2014, 2:57:35 AM9/24/14
to tachyo...@googlegroups.com
Thanks. Haoyuan.

在 2014年9月18日星期四UTC+8下午9时22分59秒,guanchao wen写道:
Caused by: org.apache.thrift.transport.TTransportException: Could not create ServerSocket on address localhost/<span st
...

Haoyuan Li

unread,
Sep 28, 2014, 1:00:06 PM9/28/14
to guanchao wen, tachyo...@googlegroups.com
Is this solved? It seems a master address conf issue.

Haoyuan

--
You received this message because you are subscribed to the Google Groups "Tachyon Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tachyon-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages