Command Install Oozie ShareLib is not currently available for execution.
时间: 2024-03-22 16:37:35 浏览: 68
The error message "Command Install Oozie ShareLib is not currently available for execution" usually occurs when trying to install the Oozie ShareLib while the Oozie server is not running or is in a stopped state. To resolve this issue, you should ensure that the Oozie server is running and then try installing the ShareLib again.
You can start the Oozie server by running the following command:
```
sudo service oozie start
```
Once the server is running, you can try installing the ShareLib again by running the following command:
```
sudo -u oozie oozie admin -sharelibupdate
```
This should update the ShareLib and resolve the issue.
相关问题
cdh安装oozie报错Command Install Oozie ShareLib is not currently available for execution.
在CDH中安装Oozie时,如果执行命令`sudo -u oozie oozie admin -sharelibupdate`时出现错误消息“Command Install Oozie ShareLib is not currently available for execution”,那么可能是因为Oozie Server没有运行或者处于停止状态。
要解决这个问题,您可以尝试启动Oozie Server,方法如下:
```
sudo service oozie start
```
等待几秒钟,然后再次尝试安装ShareLib:
```
sudo -u oozie oozie admin -sharelibupdate
```
这应该就能够解决这个问题了。如果还有其他问题,请随时问我。
java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.oozie.action.hadoop.LauncherAM.runActionMain(LauncherAM.java:410) at org.apache.oozie.action.hadoop.LauncherAM.access$300(LauncherAM.java:55) at org.apache.oozie.action.hadoop.LauncherAM$2.run(LauncherAM.java:223) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:422) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1875) at org.apache.oozie.action.hadoop.LauncherAM.run(LauncherAM.java:217) at org.apache.oozie.action.hadoop.LauncherAM$1.run(LauncherAM.java:153) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:422) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1875) at org.apache.oozie.action.hadoop.LauncherAM.main(LauncherAM.java:141) Caused by: org.apache.oozie.action.hadoop.LauncherMainException at org.apache.oozie.action.hadoop.ShellMain.run(ShellMain.java:76) at org.apache.oozie.action.hadoop.LauncherMain.run(LauncherMain.java:104) at org.apache.oozie.action.hadoop.ShellMain.main(ShellMain.java:63) ... 16 more怎么回事
这个异常是由于在执行Oozie动作时发生了错误导致的。根据堆栈跟踪信息,异常的根本原因是`org.apache.oozie.action.hadoop.LauncherMainException`。
这个异常通常是由于在执行Oozie动作的Shell脚本或命令中发生了错误。可能有以下几个原因导致该异常:
1. Shell脚本或命令中存在语法错误或执行错误。
2. 执行的Shell脚本或命令缺少必要的权限。
3. Shell脚本或命令中引用了不存在的文件或路径。
要解决这个问题,你可以尝试以下几个步骤:
1. 检查Shell脚本或命令中是否存在语法错误或执行错误。确保脚本能够在命令行中成功执行。
2. 确保Shell脚本或命令具有执行权限。你可以使用`chmod +x <脚本文件>`命令为脚本添加执行权限。
3. 检查Shell脚本或命令中引用的文件或路径是否存在。确保引用的文件或路径是正确的。
如果以上步骤没有解决问题,你可能需要进一步检查Oozie作业配置、环境变量等方面,以确定其他潜在的问题。此外,查看Oozie日志文件可以提供更多关于异常的详细信息,帮助你定位问题所在。
阅读全文