On Mon, Aug 23, 2010 at 1:25 PM, Shuja Rehman <[email protected]> wrote:

> Hi
> I have added the following line to hadoop-env.sh to work with hbase.
>
> export HADOOP_CLASSPATH=/usr/lib/hbase-0.89.20100621+17.jar:/usr/lib/conf
>
>
You really shouldn't have to do this. In 0.89 you can use the following API
for your MR jobs to be sure that the HBase jar gets shipped along for the
ride:

http://hbase.apache.org/docs/r0.89.20100621/apidocs/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.html#addDependencyJars(org.apache.hadoop.mapreduce.Job)

Unfortunately we don't have an equivalent for the old API yet, and we
haven't done a good job of documenting this. Anyone up for an easy patch? :)


> When i restart the service for hadoop then it shows me following error
> messages
>

Which service in particular are you restarting? This is probably a packaging
bug.

-Todd



>
> ERROR.
> install: cannot change owner and permissions of `/usr/lib/hbase/pids': No
> such file or directory
> install: cannot change owner and permissions of `/usr/lib/hbase/pids': No
> such file or directory
> install: cannot change owner and permissions of `/usr/lib/hbase/pids': No
> such file or directory
>
>
> Can anybody guide about the solution?
>
> Thanks
> --
> Regards
> Shuja-ur-Rehman Baig
> http://pk.linkedin.com/in/shujamughal
> Cell: +92 3214207445
>



-- 
Todd Lipcon
Software Engineer, Cloudera

Reply via email to