传送门 A. Divide it! ?题意 给定一个数n, 每次可以进行下列一种操作 1.如果n可以被2整除,用n/2代替n 2.如果n可以被3整除,用2n/3代替n 3.如果n可以被5整除,用4n/5代替n 如果可以经过上述操作使得 n 变为 1,输出最小操作次数,反之,输出-1; ?思路 n/2 ...
分类:
其他好文 时间:
2019-06-23 19:07:09
阅读次数:
92
<!-- 阿里云仓库1 --> <mirror> <id>alimaven-1</id> <name>aliyun maven-2</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <mirrorOf>cen ...
分类:
其他好文 时间:
2019-06-22 19:35:36
阅读次数:
111
1、切换至root用户,检查一下已经安装的软件以及可以安装的软件 [root@localhost ~]# yum grouplistLoaded plugins: fastestmirrorThere is no installed groups file.Maybe run: yum groups ...
分类:
其他好文 时间:
2019-06-21 15:42:15
阅读次数:
1052
1.Hue 概述及版本下载 1)概述 Hue是一个开源的Apache Hadoop UI系统,最早是由Cloudera Desktop演化而来,由Cloudera贡献给开源社区,它是基于Python Web框架Django实现的。通过使用Hue我们可以在浏览器端的Web控制台上与Hadoop集群进行 ...
分类:
其他好文 时间:
2019-06-18 14:26:51
阅读次数:
159
用户管理 1、groups 查看当前用户所在的组;将 newuser添加到组staff中# usermod -G staff newuser# usermod -aG dlong dlong 将用户dlong加入到dlong组,不退出原组。-d参数为删除该组用户。2、修改newuser的用户名为ne ...
分类:
系统相关 时间:
2019-06-15 13:53:42
阅读次数:
246
MemoryManager内存管理器 内存管理器可以说是spark内核中最重要的基础模块之一,shuffle时的排序,rdd缓存,展开内存,广播变量,Task运行结果的存储等等,凡是需要使用内存的地方都需要向内存管理器定额申请。我认为内存管理器的主要作用是为了尽可能减小内存溢出的同时提高内存利用率。 ...
分类:
其他好文 时间:
2019-06-13 09:17:47
阅读次数:
111
传送门 D. Divide by three, multiply by two ?题意 给你一个数 x,x 可以执行以下两种操作中的一种得到数 y: y 再执行上述两种操作的一种得到数 z; 接着对 z 得到...... 这样依次执行了 n-1 次会得到 n 个数; 现在给你这 n 个数,让你按照上 ...
分类:
其他好文 时间:
2019-06-11 22:10:48
阅读次数:
125
Partitioner: Partitioning and Combining take place between Map and Reduce phases. It is to club the data which should go to the same reducer based on ...
分类:
其他好文 时间:
2019-06-09 12:47:01
阅读次数:
97
修改maven根目录下的conf文件夹中的setting.xml文件,(或者当前用户目录 的 .m2 目录下的 setting.xml 文件)内容如下: alimaven aliyun maven http://maven.aliyun.com/nexus/content/groups/public... ...
分类:
其他好文 时间:
2019-06-08 18:55:45
阅读次数:
176
You are given an array 𝑎1,𝑎2,…,𝑎𝑛 and an integer 𝑘 . You are asked to divide this array into 𝑘 non-empty consecutive subarrays. Every element in ...
分类:
编程语言 时间:
2019-06-07 20:52:57
阅读次数:
106