1 Star 0 Fork 2

fbird2020 / drill

forked from mirrors_apache / drill 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Environment.md 1.53 KB
一键复制 编辑 原始数据 按行查看 历史

How to build and run Apache Drill

Prerequisites

Currently, the Apache Drill build process is known to work on Linux, Windows and OSX. To build, you need to have the following software installed on your system to successfully complete a build.

  • Java 8
  • Maven 3.6.3 or greater

Docker based build environment

The start-build-env.sh script in the root of the project source builds and starts a preconfigured environment that contains all the tools needed to build Apache Drill from source.

This is known to work on Ubuntu 20.04 with Docker installed. On other systems your success may vary. On Redhat/CentOS based systems no longer have Docker.

Confirm settings

# java -version
java version "1.8.0_161"
Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)

# mvn --version
Apache Maven 3.6.3

Checkout

git clone https://github.com/apache/drill.git

Build

cd drill
mvn clean install -DskipTests

Explode tarball in installation directory

mkdir /opt/drill
tar xvzf distribution/target/*.tar.gz --strip=1 -C /opt/drill 

Start SQLLine (which starts Drill in embedded mode)

cd /opt/drill
bin/sqlline -u jdbc:drill:zk=local -n admin -p admin

Run a query

SELECT 
  employee_id, 
  first_name
FROM cp.`employee.json`; 

More information

For more information including how to run a Apache Drill cluster, visit the Apache Drill Documentation

1
https://gitee.com/fbird2020/drill.git
git@gitee.com:fbird2020/drill.git
fbird2020
drill
drill
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891