You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ambari.apache.org by Artem Ervits <ar...@nyp.org> on 2013/05/28 22:24:35 UTC

hive failure during install

Hello all,

I am getting an error during install, I tried to impersonate hive and run the command but I still get the permission denied. I'm not sure where the permission failure is coming from.

notice: /Stage[2]/Hdp-hive::Service/Hdp::Exec[su - hive -c  'env HADOOP_HOME=/usr JAVA_HOME=/usr/lib/jvm/jre-1.6.0-sun.x86_64 /tmp/startMetastore.sh /var/log/hive/hive.out /var/log/hive/hive.log /application/run/hive/hive.pid ']/Exec[su - hive -c  'env HADOOP_HOME=/usr JAVA_HOME=/usr/lib/jvm/jre-1.6.0-sun.x86_64 /tmp/startMetastore.sh /var/log/hive/hive.out /var/log/hive/hive.log /application/run/hive/hive.pid ']/returns: env: /tmp/startMetastore.sh: Permission denied
err: /Stage[2]/Hdp-hive::Service/Hdp::Exec[su - hive -c  'env HADOOP_HOME=/usr JAVA_HOME=/usr/lib/jvm/jre-1.6.0-sun.x86_64 /tmp/startMetastore.sh /var/log/hive/hive.out /var/log/hive/hive.log /application/run/hive/hive.pid ']/Exec[su - hive -c  'env HADOOP_HOME=/usr JAVA_HOME=/usr/lib/jvm/jre-1.6.0-sun.x86_64 /tmp/startMetastore.sh /var/log/hive/hive.out /var/log/hive/hive.log /application/run/hive/hive.pid ']/returns: change from notrun to 0 failed: su - hive -c  'env HADOOP_HOME=/usr JAVA_HOME=/usr/lib/jvm/jre-1.6.0-sun.x86_64 /tmp/startMetastore.sh /var/log/hive/hive.out /var/log/hive/hive.log /application/run/hive/hive.pid ' returned 126 instead of one of [0] at /var/lib/ambari-agent/puppet/modules/hdp/manifests/init.pp:313

I ran the command manually and I still get failure:

su - hive -c  'env HADOOP_HOME=/usr JAVA_HOME=/usr/lib/jvm/jre-1.6.0-sun.x86_64 /tmp/startMetastore.sh /var/log/hive/hive.out /var/log/hiv
e/hive.log /application/run/hive/hive.pid'
env: /tmp/startMetastore.sh: Permission denied


Thank you



This electronic message is intended to be for the use only of the named recipient, and may contain information that is confidential or privileged.  If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited.  If you have received this message in error or are not the named recipient, please notify us immediately by contacting the sender at the electronic mail address noted above, and delete and destroy all copies of this message.  Thank you.

Re: hive failure during install

Posted by Yusaku Sako <yu...@hortonworks.com>.
Ambari deploys /tmp/startMetastore.sh and set it to 755 with owner root
whenever you try to start Hive .

I would check your permissions on /tmp itself (you might need to do *chmod
1777 /tmp*).


Yusaku


On Tue, May 28, 2013 at 2:14 PM, Artem Ervits <ar...@nyp.org> wrote:

> Yes it did, I installed with manually configured agents, not sharing ssh
> keys. Would that make any difference? I see the file is owned by root, hive
> user would not have the priveledges obviously. Any way to change that now,
> meaning the script is in tmp so every time machine is rebooted, there will
> be a new copy and it will be owned by root, correct?
>
>
> -----Original Message-----
> From: Hitesh Shah [mailto:hitesh@hortonworks.com]
> Sent: Tuesday, May 28, 2013 4:42 PM
> To: ambari-user@incubator.apache.org
> Subject: Re: hive failure during install
>
> Does /tmp/startMetastore.sh have executable permissions set?
>
> -- Hitesh
>
> On May 28, 2013, at 1:24 PM, Artem Ervits wrote:
>
> > Hello all,
> >
> > I am getting an error during install, I tried to impersonate hive and
> run the command but I still get the permission denied. I'm not sure where
> the permission failure is coming from.
> >
> > notice: /Stage[2]/Hdp-hive::Service/Hdp::Exec[su - hive -c  'env
> > HADOOP_HOME=/usr JAVA_HOME=/usr/lib/jvm/jre-1.6.0-sun.x86_64
> > /tmp/startMetastore.sh /var/log/hive/hive.out /var/log/hive/hive.log
> > /application/run/hive/hive.pid ']/Exec[su - hive -c  'env
> > HADOOP_HOME=/usr JAVA_HOME=/usr/lib/jvm/jre-1.6.0-sun.x86_64
> > /tmp/startMetastore.sh /var/log/hive/hive.out /var/log/hive/hive.log
> > /application/run/hive/hive.pid ']/returns: env:
> > /tmp/startMetastore.sh: Permission denied
> > err: /Stage[2]/Hdp-hive::Service/Hdp::Exec[su - hive -c  'env
> > HADOOP_HOME=/usr JAVA_HOME=/usr/lib/jvm/jre-1.6.0-sun.x86_64
> > /tmp/startMetastore.sh /var/log/hive/hive.out /var/log/hive/hive.log
> > /application/run/hive/hive.pid ']/Exec[su - hive -c  'env
> > HADOOP_HOME=/usr JAVA_HOME=/usr/lib/jvm/jre-1.6.0-sun.x86_64
> > /tmp/startMetastore.sh /var/log/hive/hive.out /var/log/hive/hive.log
> > /application/run/hive/hive.pid ']/returns: change from notrun to 0
> > failed: su - hive -c  'env HADOOP_HOME=/usr
> > JAVA_HOME=/usr/lib/jvm/jre-1.6.0-sun.x86_64 /tmp/startMetastore.sh
> > /var/log/hive/hive.out /var/log/hive/hive.log
> > /application/run/hive/hive.pid ' returned 126 instead of one of [0] at
> > /var/lib/ambari-agent/puppet/modules/hdp/manifests/init.pp:313
> >
> > I ran the command manually and I still get failure:
> >
> > su - hive -c  'env HADOOP_HOME=/usr
> > JAVA_HOME=/usr/lib/jvm/jre-1.6.0-sun.x86_64 /tmp/startMetastore.sh
> /var/log/hive/hive.out /var/log/hiv e/hive.log
> /application/run/hive/hive.pid'
> > env: /tmp/startMetastore.sh: Permission denied
> >
> >
> > Thank you
> >
> >
> >
> > This electronic message is intended to be for the use only of the named
> recipient, and may contain information that is confidential or privileged.
> If you are not the intended recipient, you are hereby notified that any
> disclosure, copying, distribution or use of the contents of this message is
> strictly prohibited. If you have received this message in error or are not
> the named recipient, please notify us immediately by contacting the sender
> at the electronic mail address noted above, and delete and destroy all
> copies of this message. Thank you.
>
> This electronic message is intended to be for the use only of the named
> recipient, and may contain information that is confidential or privileged.
>  If you are not the intended recipient, you are hereby notified that any
> disclosure, copying, distribution or use of the contents of this message is
> strictly prohibited.  If you have received this message in error or are not
> the named recipient, please notify us immediately by contacting the sender
> at the electronic mail address noted above, and delete and destroy all
> copies of this message.  Thank you.
>

RE: hive failure during install

Posted by Artem Ervits <ar...@nyp.org>.
Yes it did, I installed with manually configured agents, not sharing ssh keys. Would that make any difference? I see the file is owned by root, hive user would not have the priveledges obviously. Any way to change that now, meaning the script is in tmp so every time machine is rebooted, there will be a new copy and it will be owned by root, correct?


-----Original Message-----
From: Hitesh Shah [mailto:hitesh@hortonworks.com] 
Sent: Tuesday, May 28, 2013 4:42 PM
To: ambari-user@incubator.apache.org
Subject: Re: hive failure during install

Does /tmp/startMetastore.sh have executable permissions set?

-- Hitesh 

On May 28, 2013, at 1:24 PM, Artem Ervits wrote:

> Hello all,
>  
> I am getting an error during install, I tried to impersonate hive and run the command but I still get the permission denied. I'm not sure where the permission failure is coming from.
>  
> notice: /Stage[2]/Hdp-hive::Service/Hdp::Exec[su - hive -c  'env 
> HADOOP_HOME=/usr JAVA_HOME=/usr/lib/jvm/jre-1.6.0-sun.x86_64 
> /tmp/startMetastore.sh /var/log/hive/hive.out /var/log/hive/hive.log 
> /application/run/hive/hive.pid ']/Exec[su - hive -c  'env 
> HADOOP_HOME=/usr JAVA_HOME=/usr/lib/jvm/jre-1.6.0-sun.x86_64 
> /tmp/startMetastore.sh /var/log/hive/hive.out /var/log/hive/hive.log 
> /application/run/hive/hive.pid ']/returns: env: 
> /tmp/startMetastore.sh: Permission denied
> err: /Stage[2]/Hdp-hive::Service/Hdp::Exec[su - hive -c  'env 
> HADOOP_HOME=/usr JAVA_HOME=/usr/lib/jvm/jre-1.6.0-sun.x86_64 
> /tmp/startMetastore.sh /var/log/hive/hive.out /var/log/hive/hive.log 
> /application/run/hive/hive.pid ']/Exec[su - hive -c  'env 
> HADOOP_HOME=/usr JAVA_HOME=/usr/lib/jvm/jre-1.6.0-sun.x86_64 
> /tmp/startMetastore.sh /var/log/hive/hive.out /var/log/hive/hive.log 
> /application/run/hive/hive.pid ']/returns: change from notrun to 0 
> failed: su - hive -c  'env HADOOP_HOME=/usr 
> JAVA_HOME=/usr/lib/jvm/jre-1.6.0-sun.x86_64 /tmp/startMetastore.sh 
> /var/log/hive/hive.out /var/log/hive/hive.log 
> /application/run/hive/hive.pid ' returned 126 instead of one of [0] at 
> /var/lib/ambari-agent/puppet/modules/hdp/manifests/init.pp:313
>  
> I ran the command manually and I still get failure:
>  
> su - hive -c  'env HADOOP_HOME=/usr 
> JAVA_HOME=/usr/lib/jvm/jre-1.6.0-sun.x86_64 /tmp/startMetastore.sh /var/log/hive/hive.out /var/log/hiv e/hive.log /application/run/hive/hive.pid'
> env: /tmp/startMetastore.sh: Permission denied
>  
>  
> Thank you
>  
>  
> 
> This electronic message is intended to be for the use only of the named recipient, and may contain information that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately by contacting the sender at the electronic mail address noted above, and delete and destroy all copies of this message. Thank you.

This electronic message is intended to be for the use only of the named recipient, and may contain information that is confidential or privileged.  If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited.  If you have received this message in error or are not the named recipient, please notify us immediately by contacting the sender at the electronic mail address noted above, and delete and destroy all copies of this message.  Thank you.

Re: hive failure during install

Posted by Hitesh Shah <hi...@hortonworks.com>.
Does /tmp/startMetastore.sh have executable permissions set?

-- Hitesh 

On May 28, 2013, at 1:24 PM, Artem Ervits wrote:

> Hello all,
>  
> I am getting an error during install, I tried to impersonate hive and run the command but I still get the permission denied. I’m not sure where the permission failure is coming from.
>  
> notice: /Stage[2]/Hdp-hive::Service/Hdp::Exec[su - hive -c  'env HADOOP_HOME=/usr JAVA_HOME=/usr/lib/jvm/jre-1.6.0-sun.x86_64 /tmp/startMetastore.sh /var/log/hive/hive.out /var/log/hive/hive.log /application/run/hive/hive.pid ']/Exec[su - hive -c  'env HADOOP_HOME=/usr JAVA_HOME=/usr/lib/jvm/jre-1.6.0-sun.x86_64 /tmp/startMetastore.sh /var/log/hive/hive.out /var/log/hive/hive.log /application/run/hive/hive.pid ']/returns: env: /tmp/startMetastore.sh: Permission denied
> err: /Stage[2]/Hdp-hive::Service/Hdp::Exec[su - hive -c  'env HADOOP_HOME=/usr JAVA_HOME=/usr/lib/jvm/jre-1.6.0-sun.x86_64 /tmp/startMetastore.sh /var/log/hive/hive.out /var/log/hive/hive.log /application/run/hive/hive.pid ']/Exec[su - hive -c  'env HADOOP_HOME=/usr JAVA_HOME=/usr/lib/jvm/jre-1.6.0-sun.x86_64 /tmp/startMetastore.sh /var/log/hive/hive.out /var/log/hive/hive.log /application/run/hive/hive.pid ']/returns: change from notrun to 0 failed: su - hive -c  'env HADOOP_HOME=/usr JAVA_HOME=/usr/lib/jvm/jre-1.6.0-sun.x86_64 /tmp/startMetastore.sh /var/log/hive/hive.out /var/log/hive/hive.log /application/run/hive/hive.pid ' returned 126 instead of one of [0] at /var/lib/ambari-agent/puppet/modules/hdp/manifests/init.pp:313
>  
> I ran the command manually and I still get failure:
>  
> su - hive -c  'env HADOOP_HOME=/usr JAVA_HOME=/usr/lib/jvm/jre-1.6.0-sun.x86_64 /tmp/startMetastore.sh /var/log/hive/hive.out /var/log/hiv
> e/hive.log /application/run/hive/hive.pid'
> env: /tmp/startMetastore.sh: Permission denied
>  
>  
> Thank you
>  
>  
> 
> This electronic message is intended to be for the use only of the named recipient, and may contain information that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately by contacting the sender at the electronic mail address noted above, and delete and destroy all copies of this message. Thank you.