Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hush exception BUG #7

Open
yuchao86 opened this issue Mar 18, 2014 · 2 comments
Open

hush exception BUG #7

yuchao86 opened this issue Mar 18, 2014 · 2 comments

Comments

@yuchao86
Copy link

INFO main - Client environment:java.library.path=.:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
INFO main - Client environment:java.io.tmpdir=/var/folders/g5/08jclb4s7tg4swz4jx31h2sc0000gn/T/
INFO main - Client environment:java.compiler=
INFO main - Client environment:os.name=Mac OS X
INFO main - Client environment:os.arch=x86_64
INFO main - Client environment:os.version=10.9.2
INFO main - Client environment:user.name=yuchao
INFO main - Client environment:user.home=/Users/yuchao
INFO main - Client environment:user.dir=/Users/yuchao/Downloads/hbase-book/hush
INFO main - Initiating client connection, connectString=localhost:2181 sessionTimeout=180000 watcher=hconnection
INFO main-SendThread() - Opening socket connection to server localhost/fe80:0:0:0:0:0:0:1%1:2181
INFO main-SendThread(localhost:2181) - Socket connection established to localhost/fe80:0:0:0:0:0:0:1%1:2181, initiating session
INFO main-SendThread(localhost:2181) - Session establishment complete on server localhost/fe80:0:0:0:0:0:0:1%1:2181, sessionid = 0x144d2f6553a0008, negotiated timeout = 40000
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1937)
at org.apache.hadoop.hbase.ServerName.parseHostname(ServerName.java:81)
at org.apache.hadoop.hbase.ServerName.(ServerName.java:63)
at org.apache.hadoop.hbase.MasterAddressTracker.getMasterAddress(MasterAddressTracker.java:62)
at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:568)
at org.apache.hadoop.hbase.client.HBaseAdmin.(HBaseAdmin.java:94)
at com.hbasebook.hush.schema.SchemaManager.process(SchemaManager.java:126)
at com.hbasebook.hush.HushMain.main(HushMain.java:57)

@myrollingstar
Copy link

I have the same problem on max osx.Do you know how to solve it?

@larsgeorge
Copy link
Owner

Thanks for the feedback. I am working on that code soon and will update it to work on current systems. I use Mac too, so please bear with me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants