incubator-hcatalog-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aniket Mokashi <aniket...@gmail.com>
Subject Re: Booting the metastore?
Date Tue, 12 Jun 2012 03:28:46 GMT
The steps are little unclear on the document

Here is what I would suggest you to try-

1. from share location under build/hcatalog-$version, run
share/hcatalog/scripts/hcat_server_install.sh -r /usr/local/hcat -d
/home/hadoop/mysql-connector-java-3.1.14 -h $HADOOP_HOME -p 9933 (I think
it somehow mandates you to run it with that path).
2. copy your hive-site.xml under /usr/local/hcat/etc/hcatalog/ (or wherever
the hive-default.xml is).
3. run /usr/local/hcat/share/hcatalog/scripts/hcat_server_start.sh

In general, /usr/local/hcat can be any directory. install script is
essentially a set of copy commands (along with generating a config.sh file
from template) and you need to configure installation under
/usr/local/hcat.

(I may have mispelled shell script names)

Thanks,
Aniket

On Mon, Jun 11, 2012 at 7:58 PM, Russell Jurney <russell.jurney@gmail.com>wrote:

> I've gotten a little further after reading the installation instructions
> at http://incubator.apache.org/hcatalog/docs/r0.4.0/install.html and
> patching https://issues.apache.org/jira/browse/HCATALOG-429
>
> Now I am stuck at:
>
> [bash]$ sudo mkdir /usr/local/hcat
> [bash]$ sudo ./scripts/hcat_server_install.sh -r /usr/local/hcat -d
> /home/hadoop/mysql-connector-java-3.1.14 -h $HADOOP_HOME -p 9933
>
> Installing into [/usr/local/hcat]
> cp: cannot stat `./etc/*': No such file or directory
> cp: cannot stat `./libexec/*': No such file or directory
> cp: cannot stat `./sbin/*': No such file or directory
> cp: cannot stat `./share/*': No such file or directory
> ln: creating symbolic link `/usr/local/hcat/share/hcatalog/conf': No such
> file or directory
> ./scripts/hcat_server_install.sh: line 146:
> /usr/local/hcat/etc/hcatalog/hcat-env.sh: No such file or directory
> Installation successful
>
>
> Will patch as needed.
>
> On Mon, Jun 11, 2012 at 6:31 PM, Russell Jurney <russell.jurney@gmail.com>wrote:
>
>> I am running HCatalog for the first time.  My first issue was
>> https://issues.apache.org/jira/browse/HCATALOG-428
>>
>> Once I create var/log, and re-run bin/hcat_server.sh start I get:
>>
>> Exception in thread "main" java.lang.NumberFormatException: For input
>> string: ""
>> at
>> java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
>>  at java.lang.Integer.parseInt(Integer.java:470)
>> at java.lang.Integer.parseInt(Integer.java:499)
>>  at
>> org.apache.hadoop.hive.metastore.HiveMetaStore$HiveMetastoreCli.parse(HiveMetaStore.java:2902)
>> at
>> org.apache.hadoop.hive.metastore.HiveMetaStore.main(HiveMetaStore.java:2913)
>>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>  at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:597)
>>  at org.apache.hadoop.util.RunJar.main(RunJar.java:156)
>>
>>
>> My relevant ENV follows (had to set HIVE_HOME):
>>
>> TERM=xterm-color
>> SHELL=/bin/bash
>> HADOOP_HOME=/home/hadoop
>> OLDPWD=/home/hadoop
>> SSH_TTY=/dev/pts/0
>> USER=hadoop
>> LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda/lib:
>> MAIL=/var/mail/hadoop
>>
>> PATH=/usr/local/cuda/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/hadoop/bin
>> HIVE_HOME=/home/hadoop/hive-0.9.0
>> PWD=/home/hadoop/hcatalog-src-0.4.0-incubating
>> JAVA_HOME=/usr/lib/jvm/java-6-sun
>> LANG=en_US.UTF-8
>> SHLVL=1
>> HOME=/home/hadoop
>> LOGNAME=hadoop
>> HADOOP_HOME_WARN_SUPPRESS=true
>>
>> What do I do? :)
>>
>> --
>> Russell Jurney twitter.com/rjurney russell.jurney@gmail.com datasyndrome.
>> com
>>
>
>
>
> --
> Russell Jurney twitter.com/rjurney russell.jurney@gmail.com datasyndrome.
> com
>



-- 
"...:::Aniket:::... Quetzalco@tl"

Mime
View raw message