CHEATSHEET January 20, 2022

python

Words count 52k Reading time 47 mins.

pip curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py python get-pip.py C:\python27\scirpts下运行... Read article

CHEATSHEET January 20, 2022

python

Words count 52k Reading time 47 mins.

pip curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py python get-pip.py C:\python27\scirpts下运行 easy_install pip 修改更新源linux ~/.pip/pip.conf 12[global]index-url = https://pypi.tuna.tsinghua.edu.cn/simple windows C:\Users\xx\pip\pip.ini 1234[globa... Read article

CHEATSHEET January 20, 2022

qt

Words count 35k Reading time 31 mins.

版本说明PyQt6和PySide6都是用于调用Qt6API的Python库,使用它们可以轻松在Python语言中创建基于Qt的GUI程序;PyQt6和PySide6最大的不同表现在发行许可上; PyQt6是由RiverbankComputing公司开发,出现的比较早;它采用GPLv3许可证和商业许可证发布;这表示你如果使用PyQt6,则必须将你的代码进行开源;如果要闭源,则需要购买商业许可; PySide6是Qt官方的库亲儿子,出现的时间要比PyQt晚的多,这也是很多人知道PyQt不知道PySi... Read article

CHEATSHEET January 20, 2022

doris

Words count 12k Reading time 11 mins.

架构FE(Frontend) 1-5台(分为 Follower 和 Observer),存储元数据,包括日志和 image,通常从几百 MB 到几个 GB 不等。 BE(Backend) 10-100台,存放用户数据。3副本。 Broker 是用于访问外部数据源(如 hdfs)的进程。通常,在每台机器上部署一个 broker 实例即可。 一台机器上可以部署多个 BE 实例,但是只能部署一个 FE。多个FE所在服务器的时钟必须保持一致(允许最多5秒的时钟偏差) Setup123456cat /pr... Read article

CHEATSHEET January 20, 2022

elasticsearch

Words count 1.2k Reading time 1 mins.

baiscindex → dbtype → tabledocument → row https://www.cnblogs.com/TianFang/p/12945202.htmltext支持分词 keyword不进行分词 installhttps://www.elastic.co/guide/en/elasticsearch/reference/current/install-elasticsearch.html node.namediscovery.seed_hostscluster.ini... Read article

CHEATSHEET January 20, 2022

hbase

Words count 393 Reading time 1 mins.

create ‘UserActiveDate’, {NAME=>’lastActive’, VERSIONS=>3, MIN_VERSIONS => 1, TTL=>15552000, COMPRESSION => ‘SNAPPY’}, {NUMREGIONS => 20, SPLITALGO => ‘DecimalStringSplit’}– 保留最新一个状态. TTL设置后即使有M... Read article

CHEATSHEET January 20, 2022

kylin

Words count 634 Reading time 1 mins.

在126搭建新组件服务: kylin 4.0.0hadoop 3.2.2spark 3.2.0 - 代码写死支持spark2.4/3.1. 修改kylin.sh 环境变量的SPARK_HOME=/data/soft/kylin/sparkhttp://mirrors.ustc.edu.cn/apache/spark/spark-3.1.2/ conf/kylin.properties kylin.metadata.url ky... Read article

CHEATSHEET January 20, 2022

android

Words count 13k Reading time 11 mins.

https://developer.android.google.cn/studio/releases/platform-tools?hl=zh-cn#downloads.html uiautomator获取控件信息 连接(Nox)C:\Users\Manhua\AppData\Local\Android\Sdk\platform-tools\adb.exe connect 127.0.0.1:62001连接(Mumu root权限开启)C:\Users\Manhua\AppData\Local... Read article

CHEATSHEET January 20, 2022

hdfs

Words count 84k Reading time 1:17

shell直接写文件12dfs dfs -appendToFile - HDFSfile# 按ctrl+C结束写入 启停命令123456789$HADOOP_HOME/sbin/hadoop-daemon.sh start namenode $HADOOP_HOME/sbin/hadoop-daemon.sh stop namenode$HADOOP_HOME/sbin/hadoop-daemon.sh start datanode $HADOOP_HOME/sbin/hadoop-daemon... Read article

CHEATSHEET January 20, 2022

parquet

Words count 878 Reading time 1 mins.

df.write.mode(“overwrite”).format(“parquet”).save(path) org.apache.spark.sql.DataFrameWriter#save 定位table 获得relation 12runCommand(df.sparkSession, "save") { AppendData.byName(relation, df.logicalPlan, extraOptions.toMap) LoadDataComman... Read article

CHEATSHEET January 20, 2022

vm

Words count 5.2k Reading time 5 mins.

编译环境1 new vm(vbox)同时连通本机和外网-(两张网卡nat + hostonly) 添加新NAT网络 ip addr 修改ip: vi /etc/sysconfig/network-scripts/ifcfg-enp0s3 GATEWAY=10.0.2.1 IPADDR=10.0.2.100 NETMASK=255.255.255.0 重启systemctl restart network install: jd... Read article
Load more
0%