Linux及其工具集 发表于 2018-05-08 | 1.Linux及其工具集1.1 文件操作 cd/ls/cp/rm/mkdir less/more/cat/head/tail gzip/tar/scp/rsync 2. 探索与统计分析 wc grep find sed awk sort/uniq 3. Linux与大数据框架 SSH配置 权限管 ... 阅读全文 »
org.apache.zeppelin.interpreter.remote.RemoteInterpreterManagedProcess.start 发表于 2018-05-08 | at org.apache.zeppelin.interpreter.remote.RemoteInterpreterManagedProcess.start(RemoteInterpreterManagedProcess.java:143) linux系统 centos6.6 64位 修改/etc ... 阅读全文 »
遍历数组的最佳方式是什么 发表于 2018-05-08 | 遍历数组是我们经常遇到的,你可能会想到1for (i <- Array(1,2,3)) println(i) 但是,如果我们把元素转换为新的集合,应该使用for/yield或者map。 12345678//for yieldfor (i <- Array(1, 2, 3)) yield ... 阅读全文 »
善用Assert-你应该知道的Python技巧 发表于 2018-04-22 | 写程序遇到bug在所难免,今天我们说一个使用的debug技巧-Assert语句。 首先打开Assert官方文档。我们可以看到:1assert_stmt ::= "assert" expression1 ["," expression2] 默认情况下,assert expression1等价于123i ... 阅读全文 »
Scala Cookbook1.2创建多个字符串 发表于 2018-04-17 | 问题:创建多行字符串解决办法:使用三个双引号创建多行字符串123val foo = """On Sunday,I want to go to zoo andwatch monkeys. 但是有一个问题在REPL中,结果为这样123On Sunday, I want to go to zoo and ... 阅读全文 »