dfs目录位置由core-site.xml文件中 hadoop.tmp.dir 属性决定 :hadoop.tmp.dir属性对应值/dfs 1.dfs目录是在NameNode被格式化的时候产生的 格式化:首先在停止hadoop之后,删除 hadoop.tmp.dir 属性对应值目录下的所有文件后,执 ...
分类:
其他好文 时间:
2020-06-22 12:36:38
阅读次数:
145
默认配置文件 要获取的默认配置文件 文件存放在Hadoop的jar包中的位置 自定义配置文件[etc/hadoop]中 [core-default.xml] hadoop-common-2.10.0.jar/core-default.xml [core-site.xml] [hdfs-default ...
分类:
其他好文 时间:
2020-06-22 12:33:23
阅读次数:
48
类库安装路径:python36/lib/site-package/requests header需要加的 1. url-encode 2. json 3. xml 4.html5、file 不要加 #3 form# host = 'http://ws.webxml.com.cn'# headers ...
分类:
Web程序 时间:
2020-06-22 00:56:40
阅读次数:
97
很强,以色列科学家通过测量灯泡的震动来还原声音。 Real-Time Passive Sound Recovery from Light Bulb Vibrations 相关的新闻:https://www.forbes.com/sites/daveywinder/2020/06/14/how-to- ...
分类:
其他好文 时间:
2020-06-21 19:29:28
阅读次数:
73
看到论坛上有人发,自己跟着敲了遍代码,有些地方进行了改动,学习了。 # -*- coding: utf-8 -*- # @Time : 2020/6/17 18:24 # @Author : banshaohuan # @Site : # @File : bizhi.py # @Software: ...
分类:
其他好文 时间:
2020-06-21 18:05:04
阅读次数:
74
爬取小说全部章节,所以要在小说目录页进行爬取。只是涉及到文字,所以用 Xpath 解析。 # -*- coding: utf-8 -*- # @Time : 2020/6/21 11:09 # @Author : banshaohuan # @Site : # @File : pa_xiaoshuo ...
分类:
其他好文 时间:
2020-06-21 16:11:05
阅读次数:
234
打开文件:C:\ProgramData\Anaconda3\Lib\site-packages\notebook\static\custom\custom.css 输入以下代码: .CodeMirror pre {font-family: Consolas; font-size: 13pt;} * ...
分类:
其他好文 时间:
2020-06-21 00:31:16
阅读次数:
97
问题: 给定字符串s,和可进行交换的index对数组。 对字符串s的各个位置index,可根据交换数组所示的两两交换(次数不限),求进行交换后,可得最小的字符串。 Example 1: Input: s = "dcab", pairs = [[0,3],[1,2]] Output: "bacd" E ...
分类:
其他好文 时间:
2020-06-20 15:49:13
阅读次数:
53
概述 跨站脚本攻击(Cross Site Scripting),简称XSS,是指恶意攻击者在Web页面中嵌入恶意代码,当用户浏览页面时,嵌入在Web页面中的恶意代码会被执行,从而达到攻击目的。一般情况下这些恶意代码是JavaScript代码。XSS漏洞通常是通过php的输出函数将JavaScript ...
分类:
其他好文 时间:
2020-06-20 01:25:21
阅读次数:
70
Token Authentication vs. Cookies What is the difference between token authentication and authentication using cookies? I am trying to implement the Em ...
分类:
其他好文 时间:
2020-06-19 20:57:52
阅读次数:
62