1

当我安装 IBM Big Insights Quick Start Editor 3.0.0.0 时,除了出现错误的 Big SQL 组件之外,其他组件都是正确的:

无法启动 Big SQL 头节点和 Big SQL 调度程序节点。

当我跑./start.sh bigsql进去<BIGINSIGHTS_HOME>/bin

Starting Big SQL Scheduler     : FAIL
   ** Exception in thread "main" java.lang.NoClassDefFoundError: com.ibm.biginsights.bigsql.scheduler.server.SchedulerConfiguration
   ** Caused by: java.lang.ClassNotFoundException: com.ibm.biginsights.bigsql.scheduler.server.SchedulerConfiguration
   **   at java.net.URLClassLoader.findClass(URLClassLoader.java:434)
   **   at java.lang.ClassLoader.loadClass(ClassLoader.java:660)
   **   at sun.misc.Launcher.AppClassLoader.loadClass(Launcher.java:358)
   **   at java.lang.ClassLoader.loadClass(ClassLoader.java:626)
   ** Could not find the main class: com.ibm.biginsights.bigsql.scheduler.server.SchedulerConfiguration.  Program will exit.
   ** Big SQL scheduled startup failed. See /bi/var/ibm/biginsights/bigsql/logs/bigsql-sched.out for details

运行时出现以下./bigsql start错误<BIGINSIGHTS_HOME>/bigsql/bin

[bigsql@dpev210 bin]$ ./bigsql start
Starting Big SQL Scheduler     : FAIL
   ** Exception in thread "main" java.lang.NoClassDefFoundError: com.ibm.biginsights.bigsql.scheduler.server.SchedulerConfiguration
   ** Caused by: java.lang.ClassNotFoundException: com.ibm.biginsights.bigsql.scheduler.server.SchedulerConfiguration
   **   at java.net.URLClassLoader.findClass(URLClassLoader.java:434)
   **   at java.lang.ClassLoader.loadClass(ClassLoader.java:660)
   **   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358)
   **   at java.lang.ClassLoader.loadClass(ClassLoader.java:626)
   ** Could not find the main class: com.ibm.biginsights.bigsql.scheduler.server.SchedulerConfiguration.  Program will exit.
   ** Big SQL scheduled startup failed. See /bi/var/ibm/biginsights/bigsql/logs/bigsql-sched.out for details
Starting Big SQL      FAIL
   ** ssh "dpev210.innovate.sfb.com" "bash -l -c \"/bi/opt/ibm/biginsights/bigsql/libexec/bigsql-start\"
   ** WARNING: Cannot locate /bi/opt/ibm/biginsights/bigsql/install/bigsql-install.conf
   ** Running: db2start
   ** 06/30/2014 10:45:12     0   0   SQL6048N  A communication error occurred during START or STOP DATABASE MANAGER processing.
   ** 06/30/2014 10:45:13     1   0   SQL1026N  The database manager is already active.
   ** SQL6032W  Start command processing was attempted on "2" node(s).  "0" node(s) were successfully started.  "1" node(s) were already started.  "1" node(s) could not be started.
Starting Big SQL v1            : OK (Already running (pid 3405897))
4

3 回答 3

3

在官方文档中没有找到任何提示,但可以通过以下方式修复:

在 /opt/ibm/biginsights/bigsql/install 中运行命令 :./bigsql-setup.sh

[bigsql@dpev210 install]$ ./bigsql-setup.sh
Logging output to: /bi/opt/ibm/biginsights/bigsql/install/bigsql-setup-140630105118.log

Disabling Big SQL functionality          : OK
Processing log config templates          : OK
Configuring OPTIMIZED native I/O         : OK
Creating bigsql-conf.xml                 : OK
Performing slave pre-flight setup
   dpev209.innovate.ibm.com              : OK
Starting DB2 (if necessary)              : OK
Entering DEFAULT instance mode           : OK
Creating database BIGSQL                 :
OK
Cataloging database BIGSQL on slaves
   dpev209.innovate.ibm.com              : OK
Installing support DDL                   : OK (in SYSHADOOP)
Configuring FMP logging                  : OK
Updating database manager config         : OK
Configuring database BIGSQL storage      : OK
Enabling Big SQL mode                    : OK
Closing DB2 connections                  : OK
Stopping DB2 instance                    : OK
Generating userprofile                   : OK
Enabling Big SQL mode                    : OK
Finalizing slave setup
   dpev209.innovate.ibm.com              : OK
Starting DB2 instance                    : OK

Setup is complete. Log file can be found at /bi/opt/ibm/biginsights/bigsql/install/bigsql-setup-140630105118.log.

运行上述命令后,Big SQL 服务器将启动。

于 2014-06-30T23:41:31.157 回答
1

首先尝试通过执行以下命令再次运行 BigSql: 1. 转到文件夹:$HOME/opt/ibm/biginsights/bigsql/install 2. 然后运行命令:#./bigsql-setup.sh
bigsql 可能会得到现在安装了,但是我在创建数据库时设置失败。出现此问题的原因如下: 1. 文件权限设置不正确,无法在特定位置创建数据库。2. 文件挂载完成。

对于文件权限: 1. 转到:/home/biadmin/var/ibm/biginsights/database/bigsql 并通过运行命令将所有刀片中的目录权限更改为 777。

chmod –R 777 大SQL

再次尝试运行 bigsql。转到文件夹:$HOME/opt/ibm/biginsights/bigsql/install 然后运行命令:#./bigsql-setup.sh
我再次设置失败,并出现如下:创建数据库 Bigsql:错误

SQL1005N 数据库别名“BIGSQL”已存在于本地数据库目录或系统数据库目录中。

然后我尝试以 bigsql 用户身份运行以下命令日志记录:

db2 目录 DATABASE BIGSQL 并重新启动所有刀片。

再次尝试运行 bigsql。转到文件夹:$HOME/opt/ibm/biginsights/bigsql/install 然后运行命令:#./bigsql-setup.sh
现在,我安装成功,如下所示:[bigsql@dpev210 install]$ ./bigsql-setup.sh 将输出记录到:/bi/opt/ibm/biginsights/bigsql/install/bigsql-setup-140630105118.log

禁用 Big SQL 功能:OK 处理日志配置模板:OK 配置 OPTIMIZED 本机 I/O:OK 创建 bigsql-conf.xml:OK 执行从属飞行前设置 dpev209.innovate.ibm.com:OK 启动 DB2(如有必要): OK 进入 DEFAULT 实例模式:OK 创建数据库 BIGSQL:OK 在从属 dpev209.innovate.ibm.com 上编目数据库 BIGSQL:OK 安装支持 DDL:OK(在 SYSHADOOP 中)配置 FMP 日志记录:OK 更新数据库管理器配置:OK 配置数据库 BIGSQL 存储:OK 启用 Big SQL 模式:OK 关闭 DB2 连接:OK 停止 DB2 实例:OK 生成用户配置文件:OK 启用 Big SQL 模式:OK 完成从属设置 dpev209.innovate.ibm.com:OK 启动 DB2 实例:OK

设置完成。可以在 /bi/opt/ibm/biginsights/bigsql/install/bigsql-setup-140630105118.log 中找到日志文件。

现在,我开始了所有进程。转到文件夹:$HOME/opt/ibm/biginsights/bin/ 并
以 biadmin 用户身份运行命令:# ./start-all.sh。现在,检查 IBM 控制台,我运行了 bigsql。

于 2015-08-27T19:07:29.540 回答
0

我遇到了同样的问题,然后我尝试了你的解决方案。但是,当我尝试您的解决方案时,设置无法完成,并且在步骤中出现错误。

Creating  Database Bigsql : Error

SQL1005N  The database alias "BIGSQL" already exists in either the local
database directory or system database directory.

我通过使用对 BIGSQL 数据库进行编目来解决它

db2 catalog database BIGSQL

链接:http ://www-01.ibm.com/support/knowledgecenter/SS3JRN_7.2.0/com.ibm.itcamsoa.doc/kd4trmst32.htm%23wq38

对其进行编目后,它在 bigsql-setup 期间变为可用并成功。

于 2015-01-16T03:19:28.677 回答