向hadoop导入文件,报错 .... There are 0 datanode(s) running and no node(s) are excluded in this operation. .... 查看配置 $hadoop_home/hadoop/etc/hdfs-site.xml <pr Read More
(一)通过vi编辑器来替换。vi/vim 中可以使用 :s 命令来替换字符串。:s/well/good/ 替换当前行第一个 well 为 good:s/well/good/g 替换当前行所有 well 为 good:n,$s/well/good/ 替换第 n 行开始到最后一行中每一行的第一个 wel Read More
Scala 的类定义可以有参数,称为类参数,如上面的 xc, yc,类参数在整个类中都可以访问。 class Person(name:String,id:String,age:Int) { var Name:String=name; var ID:String=id; var Age:Int=age Read More