摘要:
首先复习一下hadoop中hdfs常用的命令 一、maven配置 二、程序 阅读全文
摘要:
一、HDFS基本的命令 dfs -ls 列出hdfs下的文件 dfs -ls in 列出hdfs下的名为in的文件夹中的文件 dfs -put test1 test 将test1文件上传到HDFS上并重命名为test dfs -get in getin 将hdfs中的文件in复制到本地系统并命名为g 阅读全文
摘要:
Yarn主要由以下几个组件组成 ResourceManager:全局的进程 NodeManager:运行在每个节点的进程 Scheduler:是ResourceManger的一个组件 Container:节点上一组CPU和内存资源 Resource Manager Resource Manager主 阅读全文
摘要:
package com.tl.spider.parser.impl; import com.tl.spider.download.WebPageDownLoadUtil; import com.tl.spider.parser.interfaces.ParseFieldsInterface; import com.tl.spider.pojos.ParserResultEntity; impo... 阅读全文
摘要:
package com.tl.spider.utils; import java.io.InputStream; import java.io.InputStreamReader; import java.io.Reader; import java.util.Properties; /** * @ClassName ReadConfigUtil * @Description 配置文件的... 阅读全文
摘要:
其中getBr函数为: 阅读全文
摘要:
package com.wu; public interface RpcProtocol { void export(int port); Object refer(Class inrerfaceClass, String host, int port); } package com.wu; import java.io.IOException; import j... 阅读全文
摘要:
#https://blog.csdn.net/huachao1001/article/details/78501928 import data01 import tensorflow as tf import numpy as np # 读入测试数据 # 导入数据 print("loading data... ") X_train, y_train = data01.get_mstar_dat... 阅读全文
摘要:
import tensorflow as tf def count_nums(true_labels, num_classes): initial_value = 0 list_length = num_classes list_data = [ initial_value for i in range(list_length)] for i in range(... 阅读全文
摘要:
SpringBoot继承Redis实现排行榜 项目文件结构 1、修改maven文件 2、redis配置文件 这里上面的redis的密码需要根据实际情况进行修改 3、RedisConfig文件 4、DefaultSerializer文件 component文件夹 5、RedisComponent代码 阅读全文