vim  /etc/sysconfig/network-scripts/ifcfg-ens33
TYPE = Ethernet
PROXY_METHOD = none
BROWSER_ONLY = no
BOOTPROTO = static
IPADDR = 192.168 .18.128
NETMASK = 255.255 .255.0
GATEWAY = 192.168 .18.2
DEFROUTE = yes
IPV4_FAILURE_FATAL = no
IPV6INIT = yes
IPV6_AUTOCONF = yes
IPV6_DEFROUTE = yes
IPV6_FAILURE_FATAL = no
IPV6_ADDR_GEN_MODE = stable-privacy
NAME = ens33
UUID = 2c2371f1-ef29-4514-a568-c4904bd11130
DEVICE = ens33
ONBOOT = true
DNS1 = 114.114 .114.114
systemctl restart network
cd  /usr/local/src
wget  https://repo.yandex.ru/clickhouse/rpm/stable/x86_64/clickhouse-client-22.2.2.1-2.noarch.rpm
wget  https://repo.yandex.ru/clickhouse/rpm/stable/x86_64/clickhouse-common-static-22.2.2.1-2.x86_64.rpm
wget  https://repo.yandex.ru/clickhouse/rpm/stable/x86_64/clickhouse-common-static-dbg-22.2.2.1-2.x86_64.rpm
wget  https://repo.yandex.ru/clickhouse/rpm/stable/x86_64/clickhouse-server-22.2.2.1-2.noarch.rpmyum -y  localinstall *.rpmsudo  systemctl enable  clickhouse-server
sudo  systemctl start clickhouse-server
sudo  systemctl status clickhouse-servervim  /etc/clickhouse-server/config.xml
< listen_host> ::< /listen_host> 
vim  /etc/clickhouse-server/users.xml
< password> default< /password> sudo  systemctl restart clickhouse-server
CREATE TABLE ` default` ( uuid VARCHAR( 100 ) 
)  ENGINE =  Log; 
        < dependency> < groupId> </ groupId> < artifactId> </ artifactId> < version> </ version> </ dependency> < dependency> < groupId> </ groupId> < artifactId> </ artifactId> < version> </ version> </ dependency> < dependency> < groupId> </ groupId> < artifactId> </ artifactId> < version> </ version> </ dependency> < dependency> < groupId> </ groupId> < artifactId> </ artifactId> < version> </ version> </ dependency> < dependency> < groupId> </ groupId> < artifactId> </ artifactId> < version> </ version> </ dependency> < dependency> < groupId> </ groupId> < artifactId> </ artifactId> < version> </ version> </ dependency> < dependency> < groupId> </ groupId> < artifactId> </ artifactId> < version> </ version> </ dependency> < dependency> < groupId> </ groupId> < artifactId> </ artifactId> < version> </ version> < scope> </ scope> </ dependency> spring : application : name :  Elastic- Batchdatasource : type :  com.zaxxer.hikari.HikariDataSourcedynamic : primary :  clickhousedatasource : clickhouse : driver-class-name :  com.clickhouse.jdbc.ClickHouseDriverurl :  jdbc: clickhouse: //192.168.15.128: 8123/defaultname :  defaultpassword :  defaultclickhouse-2 : driver-class-name :  com.clickhouse.jdbc.ClickHouseDriverurl :  jdbc: clickhouse: //192.168.15.128: 8123/defaultname :  defaultpassword :  default
@Data 
@Builder 
public  class  Example  { private  String  uuid; 
} 
@DS ( value =  "clickhouse" ) 
@Mapper 
public  interface  ExampleMapper  extends  BaseMapper < Example > { 
} 
@SpringBootApplication 
public  class  Application  { public  static  void  main ( String [ ]  args)  { SpringApplication . run ( Application . class ,  args) ; } @Resource private  ExampleMapper  exampleMapper; @PostConstruct public  void  mock ( )  { exampleMapper. insert ( Example . builder ( ) . uuid ( UUID . randomUUID ( ) . toString ( ) . toUpperCase ( Locale . ROOT ) . replace ( "-" ,  "" ) ) . build ( ) ) ; } }