[ 
https://issues.apache.org/jira/browse/BIGTOP-471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13246151#comment-13246151
 ] 

doug chang edited comment on BIGTOP-471 at 4/4/12 11:45 AM:
------------------------------------------------------------

ok, note to self: convention is HADOOP_COMPONENT.dirs where all the 
subdirectories get added
hive.dirs needs /var/lock/subsys

hadoop.dirs needs /var/lib/hadoop/cache/hadoop/dfs and may need to add the line 
to hadoop.postinst for the chown like this: 

chown root:hadoop /var/lib/hadoop/ /var/lib/hadoop/cache/ 
/var/lib/hadoop/cache/hadoop/ /var/lib/hadoop/cache/hadoop/dfs

flume needs to create /var/lock/subsys/flume-node; depends if you install hive 
first then you wont see this error message, need to look at all the scripts to 
make sure order doesnt matter. both flume and hive need /var/lock/subsys. 
verify other components and add. problem is if you install hive first then you 
never see the error messages. alternatively test each component separately for 
/var/lock/subsys requirement. tricky. 

* Starting Flume node daemon (flume-node): 
touch: cannot touch `/var/lock/subsys/flume-node': No such file or directory

have to test -- here is proof fix works:
ubuntu@ip-10-243-135-103:~$ ls /var/lock/
ubuntu@ip-10-243-135-103:~$ sudo apt-get install hive
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  hive
0 upgraded, 1 newly installed, 0 to remove and 25 not upgraded.
Need to get 0B/18.3MB of archives.
After this operation, 22.5MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  hive
Install these packages without verification [y/N]? y
Selecting previously deselected package hive.
(Reading database ... 80531 files and directories currently installed.)
Unpacking hive (from .../h/hive/hive_0.8.1-1_all.deb) ...
Processing triggers for man-db ...
Setting up hive (0.8.1-1) ...
update-alternatives: using /etc/hive/conf.dist to provide /etc/hive/conf 
(hive-conf) in auto mode.

ubuntu@ip-10-243-135-103:~$ ls /var/lock/
subsys
ubuntu@ip-10-243-135-103:~$ 


                
      was (Author: dougc33333):
    ok, note to self: convention is HADOOP_COMPONENT.dirs where all the 
subdirectories get added
hive.dirs needs /var/lock/subsys

hadoop.dirs needs /var/lib/hadoop/cache/hadoop/dfs and may need to add the line 
to hadoop.postinst for the chown like this: 

chown root:hadoop /var/lib/hadoop/ /var/lib/hadoop/cache/ 
/var/lib/hadoop/cache/hadoop/ /var/lib/hadoop/cache/hadoop/dfs

flume needs to create /var/lock/subsys/flume-node; depends if you install hive 
first then you wont see this error message.

* Starting Flume node daemon (flume-node): 
touch: cannot touch `/var/lock/subsys/flume-node': No such file or directory

have to test -- here is proof fix works:
ubuntu@ip-10-243-135-103:~$ ls /var/lock/
ubuntu@ip-10-243-135-103:~$ sudo apt-get install hive
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  hive
0 upgraded, 1 newly installed, 0 to remove and 25 not upgraded.
Need to get 0B/18.3MB of archives.
After this operation, 22.5MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  hive
Install these packages without verification [y/N]? y
Selecting previously deselected package hive.
(Reading database ... 80531 files and directories currently installed.)
Unpacking hive (from .../h/hive/hive_0.8.1-1_all.deb) ...
Processing triggers for man-db ...
Setting up hive (0.8.1-1) ...
update-alternatives: using /etc/hive/conf.dist to provide /etc/hive/conf 
(hive-conf) in auto mode.

ubuntu@ip-10-243-135-103:~$ ls /var/lock/
subsys
ubuntu@ip-10-243-135-103:~$ 


                  
> hive server setup after installation fails on creating /var/lock/subsys 
> directory
> ---------------------------------------------------------------------------------
>
>                 Key: BIGTOP-471
>                 URL: https://issues.apache.org/jira/browse/BIGTOP-471
>             Project: Bigtop
>          Issue Type: Bug
>    Affects Versions: 0.3.0
>         Environment: ubuntu 10.04 LTS
>            Reporter: doug chang
>            Assignee: doug chang
>             Fix For: 0.4.0
>
>
> Error message on sudo apt-get install hive-server
> Setting up hive-server (0.8.1-1) ...
> update-rc.d: warning: hive-server start runlevel arguments (2 3 4 5) do not 
> match LSB Default-Start values (3 4 5)
> update-rc.d: warning: hive-server stop runlevel arguments (0 1 6) do not 
> match LSB Default-Stop values (0 1 2 6)
>  * Starting  (hive-server): 
> touch: cannot touch `/var/lock/subsys/hive-server': No such file or directory
> if you create /var/lock/subsys, installation runs ok.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to