kettle 安装实录

前提条件:

  1. 操作机器上安装了docker–> mysql 依赖docker
  2. maven --> 用到 mvn
  3. jdk1.8 以上版本 -->mvn 依赖java
  4. tomcat9 -->java

1.部署mysql 实例

linyingjiedeMacBook-Pro:5.x linyingjie$ more start-mysql-docker.sh
#!/bin/bash

docker stop mysql
docker rm   mysql

docker run -d --name mysql \
-p 3306:3306 \
-v `pwd`/data:/var/lib/mysql \
-e MYSQL_DATABASE=kettle \
-e MYSQL_ROOT_PASSWORD=kaixin.com \
--restart=always  \
mysql:5.7.26

#http://www.bubuko.com/infodetail-2570772.html
#docker exec -it mysql mysql -uroot -p
#ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'kaixin.com'; FLUSH PRIVILEGES;
#SELECT User,Host,plugin FROM mysql.user;

  1. 手动导入sql 创建表格
    kettle/sql/kettlesql备份.sql

docker cp kettle/sql/kettlesql备份.sql mysql:/test.sql
docker exec -ti mysql bash
mysql -u root -h localhost -pkaixin.com
use kettle
source /test.sql

3.修改mysql 配置文件

		
		
		
		
		
	
  1. 编译打包
    cd kettle
    linyingjiedeMacBook-Pro:kettle linyingjie$ mvn clean compile package
    5.下载 tomcat https://tomcat.apache.org/download-90.cgi 下载tomcat9.x

6.部署war 到tomcat

kettle-webapp-0.0.1-SNAPSHOT.war tomcat/webapps

我电脑的目录结构如下:
linyingjiedeMacBook-Pro:target linyingjie$ pwd
/Users/linyingjie/server/app/kettle-web-server/kettle/kettle-webapp/target
linyingjiedeMacBook-Pro:target linyingjie$ ls
classes					generated-test-sources			kettle-webapp-0.0.1-SNAPSHOT.war	maven-status
generated-sources			kettle-webapp-0.0.1-SNAPSHOT		maven-archiver				test-classes
linyingjiedeMacBook-Pro:target linyingjie$
```


7. 打开浏览器 https://mp.csdn.net/mdeditor/94645025 
用户名:admin 密码:admin
![在这里插入图片描述](https://img-blog.csdnimg.cn/20190704192103457.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2hhcHB5ZnJlZWFuZ2Vs,size_16,color_FFFFFF,t_70)

7.![在这里插入图片描述](https://img-blog.csdnimg.cn/20190704192156276.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2hhcHB5ZnJlZWFuZ2Vs,size_16,color_FFFFFF,t_70)

你可能感兴趣的:(常见IT基础,大数据,经验分享)