摘要: 使用sbt 0.13.5 wget http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/0.13.5/sbt-launch.jar 新建sbt脚本在/usr/local/sbt/ 下 并加入执行权限。 #!/ 阅读全文
posted @ 2019-04-10 12:30 Ray_lei 阅读(288) 评论(0) 推荐(0) 编辑
摘要: git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim 将想要安装的插件,按照地址填写方法,将地址填写在vundle#begin和vundle#end之间就可以 保存之后,有两种方法安装插件。 (1 阅读全文
posted @ 2019-04-09 09:12 Ray_lei 阅读(222) 评论(0) 推荐(0) 编辑
摘要: echo "# pull-test">> README.mdgit initgit add README.mdgit add *git commit -m "first pull some file"git config --global user.name "lyc10031"git config 阅读全文
posted @ 2019-03-26 09:37 Ray_lei 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 安装依赖: debian 系统 build-essential yum groupinstall 'Development Tools' yum install -y ncurses-libs zlib-devel mysql-devel bzip2-devel openssl-devel ncur 阅读全文
posted @ 2019-02-27 09:29 Ray_lei 阅读(860) 评论(0) 推荐(0) 编辑
摘要: 1、读取configparser 配置文件报错 : 提示: ConfigParser.MissingSectionHeaderError when parsing rsyncd config file with global options 解决方法: https://stackoverflow.c 阅读全文
posted @ 2019-01-10 18:28 Ray_lei 阅读(331) 评论(0) 推荐(0) 编辑
摘要: shell 判断 命令执行情况 https://blog.csdn.net/Maybe_Lee/article/details/78604927 脚本例子: 1、 删除垃圾文件 使用方法: 可以在/etc/rc.local 中添加命令: sh /root/cpu_test/test_reboot.s 阅读全文
posted @ 2018-12-07 17:59 Ray_lei 阅读(129) 评论(0) 推荐(0) 编辑
摘要: #元素聚焦 target = d.find_element_by_xpath(ele) d.execute_script("arguments[0].scrollIntoView();", target) #弹出框点击确认d.switch_to.alert.accept() #headless模式 阅读全文
posted @ 2018-11-30 11:08 Ray_lei 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 创建hadoop用户同时指定使用 /bin/bash 作为 hadoop的shell: useradd -m hadoop -s /bin/bash 为hadoop 设置密码。 sudo passwd hadoop 为 hadoop 用户增加管理员权限,方便部署 sudo adduser hadoo 阅读全文
posted @ 2018-11-23 09:22 Ray_lei 阅读(835) 评论(0) 推荐(0) 编辑
摘要: 1 2 def split_data(data, prob): 3 """分割数据 4 split data into fractions [prob, 1 - prob]""" 5 results = [], [] 6 for row in data: 7 """ 8 这里对数据的迭代是有序的 9 阅读全文
posted @ 2018-11-21 17:48 Ray_lei 阅读(7239) 评论(0) 推荐(0) 编辑
摘要: 在使用jdbc开启pyspark shell 下载jar包:https://dev.mysql.com/downloads/connector/j/ tar -zxf mysql-connector-java-8.0.13.tar.gz /usr/local/spark/jars/ 在启动pyspa 阅读全文
posted @ 2018-11-20 16:21 Ray_lei 阅读(1964) 评论(0) 推荐(1) 编辑