clickhouse使用及常见异常 【已解决】

news/2024/7/23 8:24:05

文章目录

    • 使用
    • 异常
      • 异常一
      • 解决:
      • 异常二
      • 异常三

使用

  • clickhouse server 启动
./clickHouse server --config=/apps/clickhouse/config.xml
  • clickhouse client 启动
./clickHouse client -h 127.0.0.1 -u zhangsan --password 123456

异常

异常一

2021.11.18 11:39:28.062478 [ 546636 ] {} <Warning> Application: Cannot set max number of file descriptors to 4294967295. Try to specify max_open_files according to your system limits. error: Invalid argument

解决:

sudo launchctl limit maxfiles 65536 200000

参考:https://wilsonmar.github.io/maximum-limits/

异常二


2021.11.18 11:24:16.142384 [ 533636 ] {} <Warning> Access(local directory): File /Users/home/apps/clickhouse/var/lib/clickhouse/access/ledzeppelin/users.list doesn't exist
2021.11.18 11:24:16.142418 [ 533636 ] {} <Warning> Access(local directory): Recovering lists in directory /Users/home/apps/clickhouse/var/lib/clickhouse/access/ledzeppelin/

找不到文件夹,mkdir -p 创建

异常三

scala代码jdbc连接clickhouse。

ClickHouse exception, code: 1002, host: 127.0.0.1, port: 8123; Code: 516. DB::Exception: default: Authentication failed: password is incorrect or there is no user with such name. (AUTHENTICATION_FAILED) (version 21.9.1.7770)

ru.yandex.clickhouse.except.ClickHouseUnknownException: ClickHouse exception, code: 1002, host: 127.0.0.1, port: 8123; Code: 516. DB::Exception: default: Authentication failed: password is incorrect or there is no user with such name. (AUTHENTICATION_FAILED) (version 21.9.1.7770)

共同入门大数据


http://www.niftyadmin.cn/n/587056.html

相关文章

Tcl学习0——Tcl和Tk介绍

Tcl Tcl&#xff08;tool command language&#xff09;是一种用于控制和扩展应用程序的动态语言。 Tcl特点&#xff1a; 可嵌入的(embeded)&#xff08;解释器是一个C函数库&#xff0c;很容易整合到应用程序中。&#xff09;可扩展的(extensible)&#xff08;任意应用程序…

vmware操作centos、hadoop、flink

Linux上安装Hadoop集群(CentOS7hadoop-2.8.0) https://blog.csdn.net/pucao_cug/article/details/71698903 本地主机如何访问虚拟机centos的web服务器、关闭防火墙 https://blog.csdn.net/liujingqiu/article/details/89310632 安装flink 下载解压即可&#xff08;国内镜像…

关于页面中body onload 和 window.onload 冲突的问题的解决

1.使用attachEvent给onload添加所需运行的函数 if(document.all){window.attachEvent(onload, FuncName)}else{window.addEventListener(load, FuncName, false);} 2.使用window.onload function(){FuncName1(); FuncName();}&#xff0c;直接onload两个函数。可以加一个判…

CSS样式之定位

1.定位的边偏移 top 顶端偏移量&#xff0c;定义元素相对于其父元素上边线的距离bottom 底部偏移量&#xff0c;定义元素相对于其父元素下边线的距离left 左侧偏移量&#xff0c;定义元素相对于其父元素左边线的距离right 右侧偏移量&#xff0c;定义元素相对于其父元素右…

phantomjs、ChromeDriver、OperaDriver、Selenium国内镜像

phantomjs 镜像: https://npmmirror.com/mirrors/phantomjs ChromeDriver 镜像: https://npmmirror.com/mirrors/chromedriver OperaDriver 镜像: https://npmmirror.com/mirrors/operadriver Selenium 镜像: https://npmmirror.com/mirrors/selenium 国内镜像汇总JavaPub汇…

CSS显示与隐藏,overflow

1.display &#xff08;主要&#xff09; 1.1 display:none; 隐藏元素&#xff0c;但是元素还存在&#xff0c;只是不显示&#xff0c;占有的位置也没有了。 1.2 display: block&#xff1b; 转换为块元素&#xff0c;显示元素。 2.visibility 2.1visibility: hidden; 隐藏…

eclipse国内镜像极速下载

eclipse国内镜像极速下载 http://mirrors.ustc.edu.cn/eclipse/technology/epp/downloads/release/ 国内镜像汇总JavaPub汇总

国内镜像汇总-极速下载【JavaPub版】

持续更新&#xff0c;建议收藏--可留言 文章目录国内镜像汇总-极速下载【JavaPub版】JDK国内镜像Hadoop国内镜像github加速phantomjs、ChromeDriver、OperaDriver、Selenium国内镜像eclipse国内镜像MySQL国内镜像flink国内镜像vscode国内镜像prometheus国内镜像&#xff08;普罗…