plugins\pentaho-big-data-plugin
目录,编辑plugin.properties
文件根据本身的hadoop版本添加不一样的类型,个人是cdh的,因此添加cdh514
有哪些版本能够在该目录下查看
plugins\pentaho-big-data-plugin\hadoop-configurations
web
plugins\pentaho-big-data-plugin\hadoop-configurations\cdh514
目录将集群的Hadoop、Hive配置复制到该目录中
分别是core-site.xml
、hdfs-site.xml
、mapred-site.xml
、yarn-site.xml
、hive-site.xml
apache
注意: 若是在链接Hive的时候报错Error connecting to database: (using class org.apache.hive.jdbc.HiveDriver) Illegal Hadoop Version: Unknown (expected A.B.* format)
,就将本身hadoop对应版本的hadoop-common.jar(个人是hadoop-common-2.6.0-cdh5.14.0.jar
)放到根目录的 lib
目录下,而后重启Kettle便可!网络
create database kettle; use kettle;
CREATE TABLE dept(deptno int, dname string,loc string) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\t';
CREATE TABLE emp( empno int, ename string, job string, mgr int, hiredate string, sal double, comm int, deptno int) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\t';
insert into dept values (10,'accounting','NEW YORK'), (20,'RESEARCH','DALLAS'), (30,'SALES','CHICAGO'), (40,'OPERATIONS','BOSTON');
insert into emp values (7369,'SMITH','CLERK',7902,'1980-12-17',800,NULL,20), (7499,'ALLEN','SALESMAN',7698,'1980-12-17',1600,300,30), (7521,'WARD','SALESMAN',7698,'1980-12-17',1250,500,30), (7566,'JONES','MANAGER',7839,'1980-12-17',2975,NULL,20);