摘要: 参考 https://blog.csdn.net/qq_26848943/article/details/81011709 操作系统:centos 7 1、集群如下: ip 主机名 角色 192.168.1.250 node1.jacky.com master 192.168.1.251 node2 阅读全文
posted @ 2021-10-11 01:31 tochenwei 阅读(262) 评论(0) 推荐(0) 编辑
摘要: # pip3 install thrift # pip3 install happybase # 先在Linux上启动HBASE server # 在Linux上启动HBASE server的thrift服务 # 再运行python脚本连接服务器 import happybase S_TABLE_N 阅读全文
posted @ 2021-10-06 20:47 tochenwei 阅读(935) 评论(0) 推荐(0) 编辑
摘要: 在 HBase 的 HMaster 主机上通过命令行输入 hbase shell,即可进入 HBase 命令行环境使用status命令查看当前集群各节点的状态hbase(main):019:0> status1 active master, 0 backup masters, 1 servers, 阅读全文
posted @ 2021-10-06 16:48 tochenwei 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 1. 简单粗鲁的字符串拼接 name = "abc" age = 25 info = "the name is "+name +"\nthe age is " + str(age) print(info) 2使用百分号% name = "abc" age = 25 info = "the name 阅读全文
posted @ 2021-07-07 11:19 tochenwei 阅读(341) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> int main() { char string_demo[] = "Hello World"; printf("%s\n",string_demo); //在内存中开辟一个字符数组用来存储该字符串常量,然后把开辟出的字符数组的首地址赋给指针p char *p 阅读全文
posted @ 2021-04-12 00:30 tochenwei 阅读(121) 评论(0) 推荐(0) 编辑
摘要: linux下c语言开发之指针的应用 数组名称其实是一个指针,它指向了数组的第一个元素。不能对数组名执行++、--操作,因为它是数组的首地址,它的值在程序运行过程中是固定不变的。是常量。 # gcc array.c -std=c99 -o array #./array #include <stdio. 阅读全文
posted @ 2021-04-11 23:53 tochenwei 阅读(93) 评论(0) 推荐(0) 编辑
摘要: cd /d E:\server\AdServerV2\ExportStatData\pyconfig python3 -O -m compileall -b . 注意最后面有一个点号 阅读全文
posted @ 2021-02-22 21:24 tochenwei 阅读(554) 评论(0) 推荐(0) 编辑
摘要: # pip3 install clickhouse-driver from clickhouse_driver import Client import random import string import datetime date = datetime.datetime.today() s_d 阅读全文
posted @ 2021-02-22 00:05 tochenwei 阅读(1821) 评论(0) 推荐(0) 编辑
摘要: yum install -y yum-utils device-mapper-persistent-data lvm2 yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo yum 阅读全文
posted @ 2021-02-16 22:41 tochenwei 阅读(671) 评论(0) 推荐(0) 编辑
摘要: #--encoding:utf-8 # 如何对字典循环操作删除并某一个元素 d_demo = dict() d_demo["name"] = "jim" d_demo["age"] = 25 ''' # 这样直接循环字典,并对字典进行删除元素操作,会抛出 # RuntimeError: dictio 阅读全文
posted @ 2021-01-12 23:33 tochenwei 阅读(664) 评论(0) 推荐(0) 编辑