machine-config file

22 views
Skip to first unread message

Benben Xu

unread,
Jun 5, 2014, 10:35:45 AM6/5/14
to stanford...@googlegroups.com
Dear all,

I've spend a whole day to debug my program, just now, I have caught the bug! I want to share with you, maybe it can help.

When you look at your machine-config file, and it shows like this bellow:

gxcissad@node2-OptiPlex-7010:~/GPS/trunk/master-scripts$ hadoop fs -cat /machine-configs/test_machine_config.cfg
-1 localhost 1111
0 localhost 2222
1 localhost 3333
2 localhost 4444
3 localhost 5555
4 localhost 6666

gxcissad@node2-OptiPlex-7010:~/GPS/trunk/master-scripts$ 


Then, you must meet an Exception in the 'main' , called  "

java.util.NoSuchElementException

Exception at com.google.common.base.Splitter$AbstractIterator.next(Splitter.java:469)"



Then, how to solve this????

Just remove the last line in your machine-config file!! there is a blank line !

The machine-config file should looked like this :
gxcissad@node2-OptiPlex-7010:~/GPS/trunk/master-scripts$ hadoop fs -cat /machine-configs/test_machine_config.cfg
-1 localhost 1111
0 localhost 2222
1 localhost 3333
2 localhost 4444
3 localhost 5555
4 localhost 6666
gxcissad@node2-OptiPlex-7010:~/GPS/trunk/master-scripts$ 
Reply all
Reply to author
Forward
0 new messages