在LINUX SUSE安裝PENTAHO的KETTLE實踐經驗
1. 安裝LINUX的VNC E:\電信組專案\工具存放的工具包
一、下載 vnc-4_1_3-x86_linux.tar.gz 和windows下的客戶端http://www.realvnc.com/products/free/4.1/download.html
二、安裝
1、 cd /data02/soft/
2、 tar -xzvf vnc-4_1_3-x86_linux.tar.gz
3、 cd vnc-4_1_3-x86_linux
4、 ./vncinstall /usr/local/vnc //注意先要建立該目錄才能進行訪問VNC
5、 ./vncinstall /usr/local/bin /usr/local/man
6、 mkdir -p /usr/local/vnc/classes
7、 cp java/* /usr/local/vnc/classes
8、 ./vncserver 運這個程式後,會提示你輸入密碼,然後會在root目錄(如果不是root,那麼就在當前使用者名稱的home目錄)裡自動建立一個.vnc的隱藏目錄。
9、 cd /root/.vnc
10、 vi xstartup
原內容如下:
#!/bin/sh
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &
修改後的內容如下:
#!/bin/sh
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &
gnome-session &
11、設定訪問密碼
/usr/local/vnc/vncpasswd
12、啟動vncserver
cd /usr/local/vnc # ./vncserver
# ./vncserver
New 'machineName:2 (root)' desktop is machineName:2
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/machineName:2.log
13、用windows客戶端連線
192.168.1.92:2
輸入設定的密碼就看到介面了。
14、在/root/.vnc/目錄下有成對的log和pid檔案,名如 machineName:1.pid和 machineName:1.log
有檔案的pid是活動的服務,服務號碼就是pid前面的數字。沒有pid檔案的是已經停止的服務。
可以使用 vncserver :號碼 啟動停止的服務
1. 連線VNC
注意在安裝的目錄下檢視PID的版本是多少,連線時要填寫相關的版本號
iptv-app2:~/.vnc # ll
total 40
-rw-r--r-- 1 root root 6189 Jun 1 02:13 iptv-app2:2.log
-rw-r--r-- 1 root root 5 May 31 21:31 iptv-app2:2.pid
-rw-r--r-- 1 root root 3926 Oct 20 07:13 iptv-app2:3.log
-rw-r--r-- 1 root root 6 Oct 20 07:13 iptv-app2:3.pid
-rw-r--r-- 1 root root 6347 Oct 20 10:48 iptv-app2:4.log
-rw-r--r-- 1 root root 6 Oct 20 07:16 iptv-app2:4.pid
-rw------- 1 root root 8 Oct 20 07:16 passwd
-rwxr-xr-x 1 root root 349 May 31 20:32 xstartup
windows客戶端連線
192.168.7.52:4
2. MYSQL安裝
用全量原始碼包安裝,按以下步驟進行即可
把系統恢復到最乾淨的環境
# rm -rf /etc/my.cnf
# rm -rf /data
# userdel mysql
http://10.1.1.22/mysql-5.5.27.tar.gz
http://10.1.1.22/mysql/cmake-2.8.3.tar.gz
mysql-5.5以後的版本需要用到cmake工具包編譯
1、安裝軟體包
原始碼包
1)安裝cmake
# tar xvf cmake-2.8.3.tar.gz -C /usr/src
# cd /usr/src/cmake-2.8.3/
# ./configure && make -j 2 && make install
2)安裝mysql原始碼包
# tar xvf mysql-5.5.27.tar.gz -C /usr/src
# cd /usr/src/mysql-5.5.27/
# cmake -LAH . <---檢視支援的編譯引數
# cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DENABLED_LOCAL_INFILE=ON
# make -j 2 && make install
2、建立一個用於啟動mysql的使用者
# useradd -s /sbin/nologin -u 27 mysql
3、建立配置檔案my.cnf
# vim /etc/my.cnf
[mysqld]
datadir=/data
socket=/data/mysqld.sock
port=3306
user=mysql
[mysqld_safe]
log-error=/data/mysqld.err
pid-file=/data/mysqld.pid
4、建立資料目錄,並且初始化資料檔案
# mkdir /data
# cd /usr/local/mysql
# ./scripts/mysql_install_db --datadir=/data --user=mysql
5、啟動mysql服務
# cp /usr/src/mysql-5.5.27/support-files/mysql.server /etc/rc.d/init.d/mysql5
# chmod 755 /etc/rc.d/init.d/mysql5
# service mysql5 start
或者
# /usr/local/mysql/bin/mysqld_safe &
6、新安裝資料庫需要給root使用者新增密碼
# mysqladmin -u root --socket=/data/mysqld.sock password '123'
# mysqladmin -u root -h `hostname` password '123'
# ln -s /usr/local/mysql/bin/* /usr/local/bin/
分配許可權以及改MYSQL密碼
iptv-app2:~ # /usr/local/mysql/bin/mysqladmin -u root --socket=/data/mysqld.sock password='123456'
/usr/local/mysql/bin/mysqladmin: Unknown command: 'password=123456'
iptv-app2:~ # /usr/local/mysql/bin/mysqladmin -u root --socket=/data/mysqld.sock password '123456'
iptv-app2:~ # /usr/local/mysql/bin/mysql -u root --socket=/data/mysqld.sock -p123456
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.5.27 Source distribution
Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> create user tom@'192.168.13.*' identified by '123456';
Query OK, 0 rows affected (0.00 sec)
mysql> grant all on *.* to root@'192.168.13.*'
-> ;
Query OK, 0 rows affected (0.00 sec)
mysql> grant all on *.* to root@'192.168.13.7';
Query OK, 0 rows affected (0.01 sec)
mysql> use mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> UPDATE user SET password=PASSWORD('123456') where USER='root';
Query OK, 5 rows affected (0.00 sec)
Rows matched: 6 Changed: 5 Warnings: 0
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)
mysql>
3. BI安裝與頁面訪問
建立目錄:mkdir /usr/local/pentaho/
解壓:unzip biserver-ce-4.5.0-stable.zip -d /usr/local/pentaho/
Chmod +x –R biserver-ce
Cd biserver-ce
./start_penhato
遇到OK提示按回車即可成功啟動BI
訪問:8080 joe/password訪問即可
4. KETTLE安裝與訪問
5. 遇到驅動沒有安裝報錯問題解決
E:\pentaho\data-integration\plugins\spoon\agile-bi\platform\webapps\pentaho\WEB-INF\lib
/root/chenjian/data-integration/lib
/root/chenjian/data-integration/plugins/pentaho-big-data-plugin/lib
重啟KETTLE,就可以訪問;
6. 資料庫配置方法,編輯資料庫,即可看到
點選“create or upgrade”可以建立所有SQL中的資料庫中的表等資訊。
相關文章
- Pentaho data integration(kettle) 在Mac上啟動不了Mac
- Kettle 在 linux 上的部署Linux
- Suse Linux 10中MySql安裝與配置步驟LinuxMySql
- Kettle: pentaho-server-ce-9.4 : ERROR [SchemaUpdate] could not get database metadataServerErrorDatabase
- MacOS安裝使用KettleMac
- 實踐:Linux下安裝mysql8.0LinuxMySql
- 張翼:Spark SQL在攜程的實踐經驗分享!SparkSQL
- 歷經坎坷多次易主,SUSE Linux路在何方?Linux
- openGauss資料庫在CentOS上的安裝實踐資料庫CentOS
- Nginx在Linux下的安裝NginxLinux
- mysql在linux安裝MySqlLinux
- SUSE12SP4系統安裝
- RUST 在linux 系統的安裝RustLinux
- Linux中如何安裝RabbitMQ?在linux系統中安裝Rabbitmq的方法LinuxMQ
- 在linux中安裝DockerLinuxDocker
- 在Linux上安裝gskitLinux
- 在Linux下安裝JDKLinuxJDK
- Sobol 序列並行化的實踐經驗並行
- 05安裝最佳實踐
- 企業安全實踐經驗分享
- MariaDB在Linux和Windows上的安裝LinuxWindows
- 在 Rocky Linux 上安裝最新的 DockerLinuxDocker
- 從平臺到中臺 | Elasticsearch 在螞蟻金服的實踐經驗Elasticsearch
- 華為雲對Kubernetes在Serverless Container產品落地中的實踐經驗ServerAI
- 在低容錯業務場景下落地微服務的實踐經驗微服務
- 在Linux中安裝軟體Linux
- 在 Intel NUC 上安裝 LinuxIntelLinux
- 在 Linux 上安裝 VMware 工具Linux
- 分享在Linux上安裝PythonLinuxPython
- 在Linux 上安裝 SQL ServerLinuxSQLServer
- 經驗之談:如何在伺服器上安裝專業版的linux呢?伺服器Linux
- 安裝pytorch-gpu的經驗與教訓PyTorchGPU
- mysql在linux上cmake安裝方法(自己安裝版)MySqlLinux
- vnc遠端安裝,在Linux中vnc遠端安裝的教程VNCLinux
- GeoServer2.17與Jetty9在Windows上的最佳安裝實踐ServerJettyWindows
- yapi 在linux環境下的安裝部署APILinux
- Elasticsearch 在Linux下的安裝部署和配置ElasticsearchLinux
- Scrum與OKR融合實踐經驗分享ScrumOKR
- HortonWorks Ambari安裝部署實踐