Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add impala engine #701

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions assembly/src/main/assembly/assembly.xml
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,27 @@
</includes>
</fileSet>

<!--impala-->
<fileSet>
<directory>
${project.parent.basedir}/ujes/definedEngines/impala/entrance/target/
</directory>
<outputDirectory>share/linkis/ujes/impala</outputDirectory>
<includes>
<include>*.zip</include>
</includes>
</fileSet>

<fileSet>
<directory>
${project.parent.basedir}/ujes/definedEngines/impala/enginemanager/target/
</directory>
<outputDirectory>share/linkis/ujes/impala</outputDirectory>
<includes>
<include>*.zip</include>
</includes>
</fileSet>

<!--resourcemanager-->
<fileSet>
<directory>
Expand Down
22 changes: 22 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@

<module>ujes/definedEngines/es/entrance</module>

<module>ujes/definedEngines/impala/engine</module>
<module>ujes/definedEngines/impala/enginemanager</module>
<module>ujes/definedEngines/impala/entrance</module>

<module>gateway/core</module>
<module>gateway/springcloudgateway</module>
<module>gateway/gateway-ujes-support</module>
Expand Down Expand Up @@ -568,6 +572,24 @@
<artifactId>linkis-ujes-spark-entracne</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>com.webank.wedatasphere.linkis</groupId>
<artifactId>linkis-ujes-impala-engine</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>com.webank.wedatasphere.linkis</groupId>
<artifactId>linkis-ujes-impala-enginemanager</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>com.webank.wedatasphere.linkis</groupId>
<artifactId>linkis-ujes-impala-entracne</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>com.webank.wedatasphere.linkis</groupId>
Expand Down
Binary file added ujes/definedEngines/impala/engine/.cache-main
Binary file not shown.
1 change: 1 addition & 0 deletions ujes/definedEngines/impala/engine/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target/
22 changes: 22 additions & 0 deletions ujes/definedEngines/impala/engine/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
第一步:下载impala 源码 https://github.com/cloudera/Impala.git

第二步:common/thrift 目录

第三步:生成java代码
generate_error_codes.py
thrift -r --gen java ErrorCodes.thrift
thrift -r --gen java ExecStats.thrift
thrift -r --gen java Metrics.thrift
thrift -r --gen java RuntimeProfile.thrift
thrift -r --gen java Status.thrift
thrift -r --gen java Types.thrift
thrift -r --gen java TCLIService.thrift(hive-1-api目录)

移除:删除语句"include "beeswax.thrift"和"service ImpalaService extends beeswax.BeeswaxService"这个类的定义(impala源码未编译缺失hive_metestore.thrift,impala引擎暂不用该文件,所以直接移除。)
thrift -r --gen java ImpalaService.thrift

第四步:
这一步会生成三个包的java文件,直接拷贝到impala-engine引擎包即可:
1.org.apache.impala.thrift
2.org.apache.hive.service.cli.thrift
3.com.cloudera.beeswax
80 changes: 80 additions & 0 deletions ujes/definedEngines/impala/engine/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- ~ Copyright 2019 WeBank ~ ~ Licensed under the Apache License, Version
2.0 (the "License"); ~ you may not use this file except in compliance with
the License. ~ You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0
~ ~ Unless required by applicable law or agreed to in writing, software ~
distributed under the License is distributed on an "AS IS" BASIS, ~ WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ~ See the
License for the specific language governing permissions and ~ limitations
under the License. -->

<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>linkis</artifactId>
<groupId>com.webank.wedatasphere.linkis</groupId>
<version>0.11.0</version>
<relativePath>../../../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>linkis-impala-engine</artifactId>
<dependencies>
<dependency>
<groupId>com.webank.wedatasphere.linkis</groupId>
<artifactId>linkis-ujes-engine</artifactId>
</dependency>
<dependency>
<groupId>com.webank.wedatasphere.linkis</groupId>
<artifactId>linkis-ujes-enginemanager</artifactId>
</dependency>
<dependency>
<groupId>com.webank.wedatasphere.linkis</groupId>
<artifactId>linkis-cloudRPC</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.webank.wedatasphere.linkis</groupId>
<artifactId>linkis-storage</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.webank.wedatasphere.linkis</groupId>
<artifactId>linkis-module</artifactId>
<scope>provided</scope>
<exclusions>
<exclusion>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.10</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>
<dependency>
<groupId>org.apache.thrift</groupId>
<artifactId>libthrift</artifactId>
<version>0.12.0</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
Loading