install aarch gcc/g++ (option) sudo apt install gcc-aarch64-linux-gnu sudo apt install g++-aarch64-linux-gnu install target host rust standard library rustup target add aarch64-unknown-linux-gnu config target linker, edit ~/.cargo/config, append below [target.aarch64-unknown-linux-gnu] linker=…

然而现在官方并不支持 但有几种方法可以安排 一. 使用Option 定义 fn add(a: Option<i32>, b: Option<i32>) -> i32 { a.unwrap_or(1) + b.unwrap_or(2) } 使用 add(Some(2), None); add(None,…

Use sync.Pool to re-use previously allocated objects Avoid using structures containing pointers as map keys for large maps Code generate marshalling code to avoid runtime reflection Use strings.Builder to build up strings Use…

说明 该文档详细描述使用scala编码word count任务,通过sbt工具构建包,提交spark streaming任务。 实现了几种有代表性的任务.包括从文件系统、HDFS读写,从tcp socket读写, 从kafka读写,实现无状态、有状态、滑动窗口、故障恢复。 测试环境 ssh: root@10.2.35.117 密码 123456 ssh: hadoop@10.2.35.117 密码 123456 spark安装目录 /usr/…

Hadoop集群搭建 说明: 1-4 所有机器都要做 参考 http://dblab.xmu.edu.cn/blog/install-hadoop-cluster/ 1. 系统设置 修改/etc/hostname 需要重启 shutdown -r now 修改/etc/hosts, 追加各个节点hostname 10.2.35.117 xhb-master 10.2.35.118 xhb-slave-1…