一、词频统计: 1.读文本文件生成RDD lines 2.将一行一行的文本分割成单词 words flatmap() lines=sc.textFile("file:///usr/local/spark/mycode/wordcount/word.txt") words = lines.flatMa ...
分类:
其他好文 时间:
2021-04-06 15:08:22
阅读次数:
0
补充命令: tracepath 网址 -- 路由跟踪 netstat –an -a 所有开放端口号查询 -n ip地址查看 netstat –an | grep 80 查看80端口号是否开启 tree 查看目录的结构关系 find 查找文件位置 可用--type b/d/c/p/l/f 参数指定文件 ...
分类:
其他好文 时间:
2021-04-06 15:02:57
阅读次数:
0
# @Filename: search_document.py import os,re import shutil import pandas as pd import time class atom_file(object): def re_doucement(self,path,pattern ...
分类:
其他好文 时间:
2021-04-06 14:59:44
阅读次数:
0
初次学习mybatis,跑一个最简单的demo,然而报错: java.sql.SQLException: Error setting driver on UnpooledDataSource. Cause: java.lang.ClassNotFoundException: Cannot find ...
分类:
数据库 时间:
2021-04-06 14:48:09
阅读次数:
0
网图下载 package www.shushu.Thread;?import org.apache.commons.io.FileUtils;?import java.io.File;import java.io.IOException;import java.net.URL;?public cla ...
分类:
编程语言 时间:
2021-04-06 14:43:18
阅读次数:
0
LeetCode第235场周赛题解 截断句子 按照题目要求模拟即可,把单词读入到vector中,然后按要求拼接即可 class Solution { public: string truncateSentence(string s, int k) { vector<string> a; string ...
分类:
其他好文 时间:
2021-04-06 14:34:00
阅读次数:
0
Shortcut Keys Configure Summary You can use shortcut keys to quickly insert or modify styles or do other operations supported by Typora. You can find ...
分类:
其他好文 时间:
2021-04-06 14:21:02
阅读次数:
0
1.方法1:close then open 第一步是close(0),即将标准输入的连接挂断,这里调用close(0)将标准输入与终端设备的连接切断,切断后当前文件描述符数组中的第一个元素现在处于空闲状态。 最后,使用open(filename,O_RDONLY)打开一个想连接到stdin上的文件。 ...
分类:
其他好文 时间:
2021-04-05 12:47:49
阅读次数:
0
上传脚本 apply plugin: 'maven' uploadArchives{ repositories.mavenDeployer{ // 本地仓库路径 repository(url:"file://C://Users/gang/.m2/repository/") // 唯一标识 包名 po ...
分类:
其他好文 时间:
2021-04-05 12:39:23
阅读次数:
0
Sublime Text 3 https://www.sublimetext.com/ Preferences --> Settings File Path: C:\Users\wuyong\AppData\Roaming\Sublime Text 3\Packages\User\Preferenc ...
分类:
其他好文 时间:
2021-04-05 12:36:42
阅读次数:
0