jdk11以后需要手动生成jre
$ bin/jlink --module-path jmods --add-modules java.desktop --output jre
$ bin/jlink --module-path jmods --add-modules java.desktop --output jre
错误信息: client_loop: send disconnect: Broken pipe
以macOS的ssh客户端为例
$ cd /etc/ssh
$ sudo vim ssh_config
在ssh_config文件的最下方的Host *中新增
ServerAliveInterval 30
IPQoS=throughput
使用下面的命令进行查询
$ /usr/libexec/java_home -V
Lua源码未自带windows编译脚本, 自行编译过程如下
启动Visual Studio 控制台环境,以2019为例,cmd中运行下面的脚本
D:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat
运行下面的bat脚本进行编译
cl /MD /O2 /c /DLUA_BUILD_AS_DLL *.c
ren lua.obj lua.o
ren luac.obj luac.o
link /DLL /IMPLIB:lua.lib /OUT:lua.dll *.obj
link /OUT:lua.exe lua.o lua.lib
lib /OUT:lua-static.lib *.obj
link /OUT:luac.exe luac.o lua-static.lib
Spark 官方提供的二进制下载版本缺少对Hive的支持,需要自己下载源码进行编译,加入hive的支持。
解压并修改maven repo为国内地址源(有2处)。
$ tar zxvf spark-3.2.1.tgz
$ cd spark-3.2.1
$ vim pom.xml
<!--url>https://maven-central.storage-download.googleapis.com/maven2/</url-->
<url>https://maven.aliyun.com/repository/public</url>
编译
$ export MAVEN_OPTS="-Xss64m -Xmx2g -XX:ReservedCodeCacheSize=1g"
$ ./dev/make-distribution.sh --name hadoop-3.3.2-hive-3.1.3 --tgz -Pyarn -Dhadoop.version=3.3.2 -Phive -Phive-thriftserver -DskipTests
其中-Phive -Phive-thriftserver
参数就是启用hive支持,MAVEN_OPTS参数必须的,否则编译过程中会提示java内存不足.
$ sudo apt install mysql-server
查看默认账号密码
$ sudo cat /etc/mysql/debian.cnf
# Automatically generated for Debian scripts. DO NOT TOUCH!
[client]
host = localhost
user = debian-sys-maint
password = JRvfA0JiQGk5qhnz
socket = /var/run/mysqld/mysqld.sock
[mysql_upgrade]
host = localhost
user = debian-sys-maint
password = JRvfA0JiQGk5qhnz
socket = /var/run/mysqld/mysqld.sock
$ mysql -udebian-sys-maint -pJRvfA0JiQGk5qhnz
mysql>USE mysql;
// mysql 5.7
mysql>UPDATE user SET plugin='mysql_native_password' WHERE User='root';
mysql>update mysql.user set authentication_string=password('xxx') where User='root' and Host='localhost';
// mysql 8.0
mysql>ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'xxx';
mysql>flush privileges;
mysql>exit;
$ sudo apt install python3-pip
$ sudo python3 -m pip install -U pip
$ sudo python3 -m pip install -U setuptools
$ sudo -H pip3 install --ignore-installed PyYAML
$ sudo pip3 install lftools
$ vim ~/.netrc
machine nexus.akraino.org
login <LF ID>
password <Password>
$ vim push_logs.sh
# Deploying logs to LF Nexus log server ##
# BUILD_NUMBER and JOB_NAME should be set by Jenkins
NEXUS_URL=https://nexus.akraino.org
SILO=myais
JENKINS_HOSTNAME=https://52.83.xx.xxx/
JOB_NAME=smartcities
BUILD_NUMBER=8
BUILD_URL="${JENKINS_HOSTNAME}/job/${JOB_NAME}/${BUILD_NUMBER}/"
NEXUS_PATH="${SILO}/job/${JOB_NAME}/${BUILD_NUMBER}"
lftools deploy logs $NEXUS_URL $NEXUS_PATH $BUILD_URL
echo "Logs uploaded to $NEXUS_URL/content/sites/logs/$NEXUS_PATH"
$ zip -r results.zip ./results
NEXUS_PATH="/pcei/job/v2"
NEXUS_URL="https://nexus.akraino.org/"
lftools deploy nexus-zip $NEXUS_URL logs $NEXUS_PATH results.zip
错误新如下:
Configure Gradle memory settings using '-Xmx' JVM option (e.g. '-Xmx2048m'.)
全局设置下Android Studio的内存。
Settings ==> Appearance & Behavior ==> System Settings ==> Memory Settings.
三个内存设置都调大为2048M
--enable-cross-compile
才能启用clang--cross-prefix
是拼接不出来的.