Apache Doris Windows下fe开发环境搭建

作者: 张家锋

1.环境准备

JDK1.8+ , Intellj IDEA 1.linux上编译好fe前端代码,主要目的是获取自动生成的代码,加入到前段工程里面去用于在idea中编译fe工程

在linux下,进入到源码目录,执行下面的命令:

$ sh build.sh --clean --fe

然后将 gensrc目录打包,拿出来,如下图

image-20200624124200704 2.在windows下解压gensrc.tar.gz,解压后的目录如下图:

image-20200624124420766 3.进入build/java,将红色框出的部分整个拷贝到源码的fe/src/main/java目录下

image-20200624124550741

2.调试

1. 用idea导入fe工程; 2.在fe目录下创建下面红框标出的目录,并将webroot里的内容拷贝进去

image-20200624125009183

3.配置conf/fe.conf

下面是我自己的配置,你可以根据自己的需要进行修改

## Licensed to the Apache Software Foundation (ASF) under one

## or more contributor license agreements.  See the NOTICE file

## distributed with this work for additional information

## regarding copyright ownership.  The ASF licenses this file

## to you 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.

#####################################################################

## The uppercase properties are read and exported by bin/start_fe.sh.

## To see all Frontend configurations,

## see fe/src/org/apache/doris/common/Config.java

#####################################################################

## the output dir of stderr and stdout 
LOG_DIR = $/log
DATE = `date +%Y%m%d-%H%M%S`
JAVA_OPTS="-Xmx2048m -XX:+UseMembar -XX:SurvivorRatio=8 -XX:MaxTenuringThreshold=7 -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSClassUnloadingEnabled -XX:-CMSParallelRemarkEnabled -XX:CMSInitiatingOccupancyFraction=80 -XX:SoftRefLRUPolicyMSPerMB=0 -Xloggc:$DORIS_HOME/log/fe.gc.log.$DATE"

## For jdk 9+, this JAVA_OPTS will be used as default JVM options
JAVA_OPTS_FOR_JDK_9="-Xmx4096m -XX:SurvivorRatio=8 -XX:MaxTenuringThreshold=7 -XX:+CMSClassUnloadingEnabled -XX:-CMSParallelRemarkEnabled -XX:CMSInitiatingOccupancyFraction=80 -XX:SoftRefLRUPolicyMSPerMB=0 -Xlog:gc*:$DORIS_HOME/log/fe.gc.log.$DATE:time"

##

## the lowercase properties are read by main program.

##

## INFO, WARN, ERROR, FATAL
sys_log_level = INFO

## store metadata, create it if it is not exist.

## Default value is $/doris-meta

## meta_dir = $/doris-meta
http_port = 8030
rpc_port = 9020
query_port = 9030
edit_log_port = 9010
mysql_service_nio_enabled = true

## Choose one if there are more than one ip except loopback address. 

## Note that there should at most one ip match this list.

## If no ip match this rule, will choose one randomly.

## use CIDR format, e.g. 10.10.10.0/24

## Default value is empty.

## priority_networks = 10.10.10.0/24;192.168.0.0/16

## Advanced configurations 

## log_roll_size_mb = 1024

## sys_log_dir = $/log

## sys_log_roll_num = 10

## sys_log_verbose_modules = 

## audit_log_dir = $/log

## audit_log_modules = slow_query, query

## audit_log_roll_num = 10

## meta_delay_toleration_second = 10

## qe_max_connection = 1024

## max_conn_per_user = 100

## qe_query_timeout_second = 300

## qe_slow_log_ms = 5000

4.设置环境变量

在IDEA中设置运行环境变量

image-20200624125409626

5.启动fe

下面你就可以愉快的启动,调试你的FE了

文章列表

更多推荐

更多
  • Pulsar消息队列-一套高可用实时消息系统实现 实时消息【即时通信】系统,有群聊和单聊两种方式,其形态异于消息队列:1 大量的 group 信息变动,群聊形式的即时通信系统在正常服务形态下,瞬时可能有大量用户登入登出。2 ...
  • Pulsar消息队列-Pulsar对比Kafka笔记 很多人查看 Pulsar 之前可能对 Kafka 很熟悉,参照上图可见二者内部结构的区别,Pulsar 和 Kafka 都是以 Topic 描述一个基本的数据集合,Topic 数据又分为若干 Partition,即对数据进行逻辑上的 ...
  • Pulsar消息队列-对 2017 年一套 IM 系统的反思 信系统的开发,前前后后参与或者主导了六七个 IM 系统的研发。上一次开发的 IM 系统的时间点还是 2018 年,关于该系统的详细描述见 [一套高可用实时消息系统实现][1] ...
  • Apache APISIX文档-快速入门指南-如何构建 Apache APISIX 如何构建 Apache APISIX,步骤1:安装 Apache APISIX,步骤2:安装 etcd,步骤3:管理 Apache APISIX 服务,步骤4:运行测试案例,步骤5:修改 Admin API key,步骤6:为 Apac
  • Apache APISIX文档-快速入门指南-快速入门指南 快速入门指南,概述,前提条件,第一步:安装 Apache APISIX,第二步:创建路由,第三步:验证,进阶操作,工作原理,创建上游服务Upstream,绑定路由与上游服务,添加身份验证,为路由添加前缀,APISIX Dashboard
  • Apache APISIX文档-架构设计-APISIX APISIX,软件架构,插件加载流程,插件内部结构,配置 APISIX,插件加载流程,比如指定 APISIX 默认监听端口为 8000,并且设置 etcd 地址为 http://foo:2379, 其他配置保持默认。在 ...
  • Apache APISIX文档-架构设计-Service Service 是某类 API 的抽象(也可以理解为一组 Route 的抽象)。它通常与上游服务抽象是一一对应的,Route 与 Service 之间,通常是 N:1 的关系,参看下图。不同 Route 规则同时绑定到一个 Service ...
  • Apache APISIX文档-架构设计-Plugin Config 如果你想要复用一组通用的插件配置,你可以把它们提取成一个 Plugin config,并绑定到对应的路由上。举个例子,你可以这么做:创建 Plugin config,如果这个路由已经配置了 plugins,那么 Plugin config ...
  • Apache APISIX文档-架构设计-Debug Mode 注意:在 APISIX 2.10 之前,开启基本调试模式曾经是设置 conf/config.yaml 中的 apisix.enable_debug 为 true。设置 conf/debug.yaml 中的选项,开启高级调试模式。由于 ...
  • Apache APISIX文档-架构设计-Consumer 如上图所示,作为 API 网关,需要知道 API Consumer(消费方)具体是谁,这样就可以对不同 API Consumer 配置不同规则。授权认证:比如有 [key-auth] 等。获取 consumer_...
  • 近期文章

    更多
    文章目录

      推荐作者

      更多