Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
00568398
提交
00568398
authored
4月 08, 2021
作者:
taojinlong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: kettle 抽取数据到 hbase
上级
659608d6
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
68 行增加
和
1 行删除
+68
-1
pom.xml
backend/pom.xml
+52
-0
CommonConfig.java
backend/src/main/java/io/dataease/config/CommonConfig.java
+15
-1
ExtractDataService.java
.../java/io/dataease/service/dataset/ExtractDataService.java
+0
-0
package.json
frontend/package.json
+1
-0
没有找到文件。
backend/pom.xml
浏览文件 @
00568398
...
@@ -385,6 +385,42 @@
...
@@ -385,6 +385,42 @@
<version>
3.0.8
</version>
<version>
3.0.8
</version>
</dependency>
</dependency>
<dependency>
<groupId>
pentaho-kettle
</groupId>
<artifactId>
kettle-core
</artifactId>
<version>
8.3.0.18-1084
</version>
</dependency>
<dependency>
<groupId>
pentaho-kettle
</groupId>
<artifactId>
kettle-engine
</artifactId>
<version>
8.3.0.18-1084
</version>
</dependency>
<dependency>
<groupId>
pentaho
</groupId>
<artifactId>
metastore
</artifactId>
<version>
8.3.0.18-1084
</version>
</dependency>
<dependency>
<groupId>
pentaho
</groupId>
<artifactId>
pentaho-big-data-kettle-plugins-hbase-meta
</artifactId>
<version>
8.3.0.18-1084
</version>
</dependency>
<dependency>
<groupId>
pentaho
</groupId>
<artifactId>
pentaho-big-data-kettle-plugins-hbase
</artifactId>
<version>
8.3.0.18-1084
</version>
</dependency>
<dependency>
<groupId>
pentaho
</groupId>
<artifactId>
pentaho-big-data-impl-cluster
</artifactId>
<version>
8.3.0.18-1084
</version>
</dependency>
<dependency>
<groupId>
org.pentaho.di.plugins
</groupId>
<artifactId>
pdi-engine-configuration-impl
</artifactId>
<version>
8.3.0.7-683
</version>
</dependency>
</dependencies>
</dependencies>
<build>
<build>
...
@@ -521,4 +557,20 @@
...
@@ -521,4 +557,20 @@
</plugins>
</plugins>
</build>
</build>
<repositories>
<repository>
<id>
pentaho-public
</id>
<name>
Pentaho Public
</name>
<url>
http://nexus.pentaho.org/content/groups/omni
</url>
<releases>
<enabled>
true
</enabled>
<updatePolicy>
always
</updatePolicy>
</releases>
<snapshots>
<enabled>
true
</enabled>
<updatePolicy>
always
</updatePolicy>
</snapshots>
</repository>
</repositories>
</project>
</project>
backend/src/main/java/io/dataease/config/CommonConfig.java
浏览文件 @
00568398
...
@@ -4,6 +4,9 @@ import com.fit2cloud.autoconfigure.QuartzAutoConfiguration;
...
@@ -4,6 +4,9 @@ import com.fit2cloud.autoconfigure.QuartzAutoConfiguration;
import
org.apache.spark.api.java.JavaSparkContext
;
import
org.apache.spark.api.java.JavaSparkContext
;
import
org.apache.spark.sql.SQLContext
;
import
org.apache.spark.sql.SQLContext
;
import
org.apache.spark.sql.SparkSession
;
import
org.apache.spark.sql.SparkSession
;
import
org.pentaho.di.core.KettleEnvironment
;
import
org.pentaho.di.repository.filerep.KettleFileRepository
;
import
org.pentaho.di.repository.filerep.KettleFileRepositoryMeta
;
import
org.springframework.boot.autoconfigure.AutoConfigureBefore
;
import
org.springframework.boot.autoconfigure.AutoConfigureBefore
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Bean
;
...
@@ -18,7 +21,7 @@ public class CommonConfig {
...
@@ -18,7 +21,7 @@ public class CommonConfig {
@Resource
@Resource
private
Environment
env
;
// 保存了配置文件的信息
private
Environment
env
;
// 保存了配置文件的信息
private
static
String
root_path
=
"/opt/dataease/data/kettle/"
;
@Bean
@Bean
@ConditionalOnMissingBean
@ConditionalOnMissingBean
...
@@ -51,4 +54,15 @@ public class CommonConfig {
...
@@ -51,4 +54,15 @@ public class CommonConfig {
sqlContext
.
setConf
(
"spark.default.parallelism"
,
env
.
getProperty
(
"spark.default.parallelism"
,
"1"
));
sqlContext
.
setConf
(
"spark.default.parallelism"
,
env
.
getProperty
(
"spark.default.parallelism"
,
"1"
));
return
sqlContext
;
return
sqlContext
;
}
}
@Bean
@ConditionalOnMissingBean
public
KettleFileRepository
kettleFileRepository
()
throws
Exception
{
KettleEnvironment
.
init
();
KettleFileRepository
repository
=
new
KettleFileRepository
();
KettleFileRepositoryMeta
kettleDatabaseMeta
=
new
KettleFileRepositoryMeta
(
"KettleFileRepository"
,
"repo"
,
"dataease kettle repo"
,
root_path
);
repository
.
init
(
kettleDatabaseMeta
);
return
repository
;
}
}
}
backend/src/main/java/io/dataease/service/dataset/ExtractDataService.java
浏览文件 @
00568398
差异被折叠。
点击展开。
frontend/package.json
浏览文件 @
00568398
...
@@ -49,6 +49,7 @@
...
@@ -49,6 +49,7 @@
"babel-eslint"
:
"10.0.1"
,
"babel-eslint"
:
"10.0.1"
,
"chalk"
:
"2.4.2"
,
"chalk"
:
"2.4.2"
,
"connect"
:
"3.6.6"
,
"connect"
:
"3.6.6"
,
"core-js"
:
"^2.6.5"
,
"eslint"
:
"5.15.3"
,
"eslint"
:
"5.15.3"
,
"eslint-plugin-vue"
:
"5.2.2"
,
"eslint-plugin-vue"
:
"5.2.2"
,
"html-webpack-plugin"
:
"3.2.0"
,
"html-webpack-plugin"
:
"3.2.0"
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论