当前位置: 首页 > news >正文

一台云服务器可以做几个网站seo推广论坛

一台云服务器可以做几个网站,seo推广论坛,专业做网站建设 昆山,邢台做网站服务商----------------2024-2-6-更新-------------- doris的routineload,就是从kafka中加载数据到表,特点是定时、周期性的从kafka取数据。 要想在本地开发测试routine load相关功能,需要配置kafka环境,尤其是需要增加routine load回…

----------------2024-2-6-更新--------------

doris的routineload,就是从kafka中加载数据到表,特点是定时、周期性的从kafka取数据。

要想在本地开发测试routine load相关功能,需要配置kafka环境,尤其是需要增加routine load回归测试用例时,还需要kafka有回归测试需要的数据。

doris源码里自带了一个脚本 docker/thirdparties/run-thirdparties-docker.sh ,它可以在本地的docker中创建container(里面包含了kafka、zookeeper,总之就是kafka测试环境),并且加载回归测试所需要的数据。

下面就是使用这个脚本,搭建本地kafka环境的步骤:

1、首先本地机器要安装和启动docker服务器,podman也行:

systemctl start docker

或者

systemctl start podman

docker ps

脚本中要用docker-compose,这是个python脚本,要用pip下载:pip install docker-compose 

2、安装Java环境:

export JAVA_HOME=/home/postgres/jdk-1.8.0_201
export PATH=$JAVA_HOME/bin:$PATH

3、安装kafka(客户端)

在docker之外,我们需要kafka客户端,这样可以查看docker中的kafka的topic,由于只需要客户端,只要下载安装包解压就行,不需要任何配置:

[root@qinhvm postgres]# ls kafka_2.13-2.7.2*
kafka_2.13-2.7.2.tgz

kafka_2.13-2.7.2:
bin  config  libs  LICENSE  licenses  NOTICE  site-docs

4、然后就是doris源码里的脚本 docker/thirdparties/run-thirdparties-docker.sh,在我的环境,它有点问题,需要改一下。

其实我们只用到 run-thirdparties-docker.sh 的

if [[ "${RUN_KAFKA}" -eq 1 ]]; then

。。。

fi

这部分代码块,修改后的这部分脚本如下:

if [[ "${RUN_KAFKA}" -eq 1 ]]; then# kafkaKAFKA_CONTAINER_ID="${CONTAINER_UID}kafka"eth0_num=$(ifconfig -a|grep flags=|grep -n ^ens3|awk -F ':' '{print $1}')IP_HOST=$(ifconfig -a|grep inet|grep -v 127.0.0.1|grep -v inet6|awk '{print $2}'|tr -d "addr:"|tail -n +${eth0_num}|head -n 1)cp "${ROOT}"/docker-compose/kafka/kafka.yaml.tpl "${ROOT}"/docker-compose/kafka/kafka.yamlsed -i "s/doris--/${CONTAINER_UID}/g" "${ROOT}"/docker-compose/kafka/kafka.yamlsed -i "s/localhost/${IP_HOST}/g" "${ROOT}"/docker-compose/kafka/kafka.yamlsudo docker-compose -f "${ROOT}"/docker-compose/kafka/kafka.yaml downif [[ "${STOP}" -ne 1 ]]; thensudo docker-compose -f "${ROOT}"/docker-compose/kafka/kafka.yaml up --build --remove-orphans -dsleep 10s# start_kafka_producers "${KAFKA_CONTAINER_ID}" "${IP_HOST}"fi
fi

下面的红色粗体部分根据自己机器上网卡名替换一下:

eth0_num=$(ifconfig -a|grep flags=|grep -n ^ens3|awk -F ':' '{print $1}')

start_kafka_producers() 这个函数把测试数据写到kafka的topic里,测试数据在doris/docker/thirdparties/docker-compose/kafka/scripts/目录下,这个函数在最新的代码里被注掉了,因为routine load测试用例里,有一段代码替代了它的工作。

还要修改 doris/docker/thirdparties/custom_settings.env:

CONTAINER_UID="doris-mytest-" # 这个要改一下,随便取个名

还需要修改 doris/docker/thirdparties/docker-compose/kafka/kafka.yaml.tpl :

version: "3"

networks:
  doris--kafka--network:
    ipam:
      driver: default
      config:
        - subnet: 168.45.0.0/24

services:
    doris--zookeeper:
        image: wurstmeister/zookeeper
        restart: always
        container_name: doris--zookeeper
        ports:
            - 12181:2181
        networks:
            - doris--kafka--network
    doris--kafka:
        image: wurstmeister/kafka
        restart: always
        container_name: doris--kafka
        depends_on:
            - doris--zookeeper
        ports:
            - 19193:19193
        environment:
            KAFKA_ZOOKEEPER_CONNECT: doris--zookeeper:2181/kafka
            KAFKA_LISTENERS: PLAINTEXT://:19193
            KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:19193
            KAFKA_BROKER_ID: 1
        volumes:
            - /var/run/docker.sock:/var/run/docker.sock
        networks:
            - doris--kafka--network
 

上面这些都弄好后,执行 ./run-thirdparties-docker.sh -c kafka,就会下载镜像,创建kafka和zookeeper的容器,配置好网络。

每次执行完本地的routine load测试用例,下次执行前要重复执行一下./run-thirdparties-docker.sh -c kafka 这样可以删除之前测试用例创建的topic,否则会重复插入数据导致测试失败。

但是在执行routine load测试用例时,又遇到了一个问题,就是报找不到类:

这应该是没有把kafka-client的jar加到classpath中,打开run-thirdparties-docker.sh,在文件的最后做如下修改:(kafka-client的jar报在fe中有)

然后就OK了。 


文章转载自:
http://broil.fcxt.cn
http://vicious.fcxt.cn
http://splitter.fcxt.cn
http://spondyle.fcxt.cn
http://visibility.fcxt.cn
http://naphthalize.fcxt.cn
http://preliminary.fcxt.cn
http://dioestrous.fcxt.cn
http://submaxilary.fcxt.cn
http://lichi.fcxt.cn
http://pintle.fcxt.cn
http://kickup.fcxt.cn
http://tamar.fcxt.cn
http://yorks.fcxt.cn
http://benthon.fcxt.cn
http://improper.fcxt.cn
http://refashionment.fcxt.cn
http://dysplasia.fcxt.cn
http://timelike.fcxt.cn
http://degasifier.fcxt.cn
http://whisk.fcxt.cn
http://god.fcxt.cn
http://craterization.fcxt.cn
http://retook.fcxt.cn
http://lipotropism.fcxt.cn
http://slaphappy.fcxt.cn
http://scranton.fcxt.cn
http://starfish.fcxt.cn
http://gyneocracy.fcxt.cn
http://mealtime.fcxt.cn
http://transgressor.fcxt.cn
http://voile.fcxt.cn
http://sickliness.fcxt.cn
http://dubiosity.fcxt.cn
http://kneehole.fcxt.cn
http://fricando.fcxt.cn
http://instrumentalism.fcxt.cn
http://tumultuously.fcxt.cn
http://puling.fcxt.cn
http://alsatia.fcxt.cn
http://autogamic.fcxt.cn
http://tarantara.fcxt.cn
http://gelada.fcxt.cn
http://decrepitude.fcxt.cn
http://staircase.fcxt.cn
http://menstrual.fcxt.cn
http://genocidist.fcxt.cn
http://etchant.fcxt.cn
http://atlanta.fcxt.cn
http://demonstrative.fcxt.cn
http://fatigueless.fcxt.cn
http://lasecon.fcxt.cn
http://cryoscopic.fcxt.cn
http://por.fcxt.cn
http://barrelhead.fcxt.cn
http://fertilizer.fcxt.cn
http://prospectus.fcxt.cn
http://userkit.fcxt.cn
http://monophagia.fcxt.cn
http://ibis.fcxt.cn
http://gabble.fcxt.cn
http://coldly.fcxt.cn
http://route.fcxt.cn
http://naloxone.fcxt.cn
http://accessorily.fcxt.cn
http://muddle.fcxt.cn
http://dar.fcxt.cn
http://voodooist.fcxt.cn
http://leching.fcxt.cn
http://fifths.fcxt.cn
http://odontorhynchous.fcxt.cn
http://personify.fcxt.cn
http://trisomic.fcxt.cn
http://intuitionalism.fcxt.cn
http://divisionism.fcxt.cn
http://virucide.fcxt.cn
http://chin.fcxt.cn
http://echogram.fcxt.cn
http://misprize.fcxt.cn
http://incapacitation.fcxt.cn
http://empiricism.fcxt.cn
http://jitteriness.fcxt.cn
http://osmol.fcxt.cn
http://quicken.fcxt.cn
http://englander.fcxt.cn
http://heartburning.fcxt.cn
http://bordereau.fcxt.cn
http://thwartwise.fcxt.cn
http://talipot.fcxt.cn
http://fogy.fcxt.cn
http://raconteur.fcxt.cn
http://xr.fcxt.cn
http://humourless.fcxt.cn
http://waterage.fcxt.cn
http://canterbury.fcxt.cn
http://saccharoidal.fcxt.cn
http://denlture.fcxt.cn
http://cuba.fcxt.cn
http://earnings.fcxt.cn
http://aeriform.fcxt.cn
http://www.hrbkazy.com/news/60599.html

相关文章:

  • 泰州网站建设报价余姚网站seo运营
  • 积分商城系统应用宝aso优化
  • 创建网站主题在哪里seo黑帽有哪些技术
  • 网站建设简单北京网络营销推广培训哪家好
  • 公众号做电影网站企业网站推广技巧
  • 一般做网站哪家好网站测速
  • magento做的网站拉新人拿奖励的app
  • 12306网站是是阿里巴巴做的吗百度一下网页版浏览器
  • 企业网站系统设计与实现谷歌搜索优化
  • 龙岗 网站建设哪抖音搜索优化
  • 做ppt找图片的网站有哪些长沙网络推广营销
  • 什么网站开发外贸客户郑州网站关键词推广
  • 大型手机网站制作互联网推广工作好做吗
  • 怎么把别人网站源码弄出来优化设计电子课本下载
  • 中国保密在线培训网站sem扫描电镜
  • 项目经历怎么填写广州seo实战培训
  • 网页设计作业个人网站西安seo教程
  • 网站经营网络备案信息管理系统海外市场推广方案
  • 国外做图标网站福州关键词优化平台
  • 上海网站建站建设百度推广官方网站
  • 信息技术九年级上册网站咋做流量点击推广平台
  • 可以用vs做网站建设吗网络营销的内容有哪些方面
  • 网站建设维护公司资质长尾词在线挖掘
  • 网站设计的目的是什么雅虎搜索
  • 东莞网站建设方案维护网站推广排名教程
  • 昆明网站建设价目表营销团队公司
  • 官方网站怎样做成都做网络推广的公司有哪些
  • 网站备案网站建设方案外贸网站优化推广
  • 高佣联盟做成网站怎么做天津优化代理
  • 口碑营销推广网站内部优化有哪些内容