Java 如何在 Windows 上安装 Pentaho BI CE?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/24357241/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How do I install Pentaho BI CE on windows?
提问by user3662901
I'm sure this has a relatively simple answer -_- , but I keep getting a ton of errors and I have no idea why.
我确定这有一个相对简单的答案 -_- ,但我不断收到大量错误,我不知道为什么。
Here is the guide I am following: http://akbarahmed.com/2012/05/12/install-pentaho-bi-server-4-5-on-windows-7-x64/
这是我遵循的指南:http: //akbarahmed.com/2012/05/12/install-pentaho-bi-server-4-5-on-windows-7-x64/
I am using Java 1.8.0.05, and biserver-ce-5.0.1-stable
我使用的是 Java 1.8.0.05 和 biserver-ce-5.0.1-stable
When I run start-pentaho.bat, and the Tomcat window opens, I get a whole host of errors.
当我运行 start-pentaho.bat 并且 Tomcat 窗口打开时,我收到了一大堆错误。
If I go to localhost:8080/pentaho, I get the following errors:
如果我转到 localhost:8080/pentaho,我会收到以下错误:
One or more system listeners failed. These are set in the systemListeners.xml.
org.pentaho.platform.api.engine.PentahoSystemException: PentahoSystem.ERROR_0014 -
Error while trying to execute startup sequence for
org.pentaho.platform.repository2.unified.BackingRepositoryLifecycleManagerSystemListener
I have gone through this entire process 3 times, but nothing seems to work.
我已经经历了整个过程 3 次,但似乎没有任何效果。
回答by Pedro Vale
You need to check the catalina.out and pentaho.log files (both should be at biserver-ce/tomcat/logs). They'll give you more detail on why the server is not starting.
您需要检查 catalina.out 和 pentaho.log 文件(两者都应位于 biserver-ce/tomcat/logs)。他们将为您提供有关服务器未启动原因的更多详细信息。
回答by Thomas Morgner
There are 3 things you have to take care of:
有3件事你必须注意:
When running on windows, it is easy to run into Windows' path-length limitation. This then will break the jar-loading which in return gives you random errors as the Tomcat server cannot find the classes contained in these jars. So when you install, do not install it deep into a directory, keep it at the root of your disk. From hard experience, I now always install it in DRIVE:\Pentaho
The Server will not run without the system database. If your logs show you a Quartz-Error, or a Hibernate error, then your HSQL database is not running. In the download, you'll find a "data" directory. Start the "start-hypersonic.bat" before you start the main Pentaho server.
Pentaho does not run with Java 8. There seem to be some incompatible changes in the JDK and I have not been able to actually start it up correctly. You have to use JDK 1.7 to be successful. ALso make sure that your JAVA_HOME or PENTAHO_JAVA_HOME points to the correct JDK.
The Pentaho bat files try to locate a Java installation automatically, and without explicitly setting these environment variables, any JDK may be picked up at random. Usually that is the last JDK that has been installed or updated. So to be safe, lock down the JDK by setting these variables (via Control Panel-> System -> Advanced System Settings -> Environment Variables)
在 Windows 上运行时,很容易遇到 Windows 的路径长度限制。这将破坏 jar 加载,这反过来会给您带来随机错误,因为 Tomcat 服务器找不到这些 jar 中包含的类。所以当你安装的时候,不要把它安装到一个目录的深处,把它放在你磁盘的根目录下。根据经验,我现在总是将它安装在 DRIVE:\Pentaho
没有系统数据库,服务器将无法运行。如果您的日志显示 Quartz-Error 或 Hibernate 错误,那么您的 HSQL 数据库没有运行。在下载中,您将找到一个“数据”目录。在启动主 Pentaho 服务器之前启动“start-hypersonic.bat”。
Pentaho 不能与 Java 8 一起运行。 JDK 中似乎有一些不兼容的更改,我实际上无法正确启动它。您必须使用 JDK 1.7 才能成功。还要确保您的 JAVA_HOME 或 PENTAHO_JAVA_HOME 指向正确的 JDK。
Pentaho bat 文件会尝试自动定位 Java 安装,并且没有明确设置这些环境变量,任何 JDK 都可能被随机选取。通常这是已安装或更新的最后一个 JDK。所以为了安全起见,通过设置这些变量来锁定 JDK(通过控制面板 -> 系统 -> 高级系统设置 -> 环境变量)
回答by Lucas Rezende
I was having the same error when I installed Java 8 and even after I reinstall Java 7 without removing Java 8 completely.
我在安装 Java 8 时遇到了同样的错误,甚至在我重新安装 Java 7 之后没有完全删除 Java 8 时也遇到了同样的错误。
- Remove all Java installations, then you install Java SDK 7
- Set the environment variable
PENTAHO_JAVA_HOME
as your Java 7 path - Then you reboot your computer
- Then you start Pentaho BI Server
- 删除所有 Java 安装,然后安装 Java SDK 7
- 将环境变量设置
PENTAHO_JAVA_HOME
为 Java 7 路径 - 然后你重启电脑
- 然后你启动 Pentaho BI Server
Hope this help you.
希望这对你有帮助。
BTW, don't use IE or Safari.
顺便说一句,不要使用 IE 或 Safari。