Hadoop: dfs常用命令
bin/hadoop dfs -mkdir /hilubin/hadoop dfs -touchz /hilu/niuyear.txtbin/hadoop dfs -touchz /hilu/niuyear2.txtbin/hadoop dfs -rm /hilu/niuyear2.txtbin/hadoop dfs -ls /hilubin/hadoop dfs -put test.txt /hilubin/hadoop dfs -cat /hilu/test.txtbin/hadoop d
JAVA: 带jar包路径 运行jar文件
java -Djava.ext.dirs=D:\new\WordCount\target\lib -jar D:\new\WordCount\target\WordCount-1.0.0.jar
Hadoop: wc org.apache.hadoop.security.authorize.AccessControlList.getACLString()
可能为maven依赖的hadoop core版本过低
JAVA: StringTokenizer简单用法
import java.util.StringTokenizer;public class TestStringTokenizer { public static void main(String[] args) { StringTokenizer itr = new StringTokenizer("bcd tju1895 halu!"); while (itr.hasMoreTokens()) { System.out.println(itr.nextT
MySQL: 字符串转数字
select * from total_resource_datawhere CONVERT(enterprises_number_basic,SIGNED)<CONVERT(important_subsidiaries_num_basic,SIGNED)
SpringBoot: 在使用Google Gson时,返回的类型不能为JsonObject或JsonArray,否则可能报错
nested exception is com.fasterxml.jackson.databind.JsonMappingException: JsonObject (through reference chain: com.google.gson.JsonObject["asBoolean"])
MySQL: select语句不能以key作为选择的列的别名
select corp_cd key ,corp_ab val from central_enterprises 报错select corp_cd keyxx ,corp_ab val from central_enterprises 不报错
ProtoBuf: ByteString和String转换
ByteString bs=ByteString.copyFrom("hi".getBytes()); System.out.println(bs.toStringUtf8());
Java: @Inject注解
这里写自定义目录标题欢迎使用Markdown编辑器新的改变功能快捷键合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能,丰富你的文章UML 图表FLowchart流程图导出与导入导出导入欢迎使用Markdown编辑器你好! 这是你第一次使用 Markdown编辑器 所展示的欢迎页。如果你想学习如何使用Mar
JAVA: rpm 安装jdk8
rpm -ivh jdk-8u281-linux-x64.rpm [root@localhost scripts]# which java/bin/java[root@localhost scripts]# rm -f /bin/java[root@localhost scripts]# rm -f /bin/javac[root@localhost scripts]# rm -f /etc/alternatives/java[root@localhost scripts]# rm -f /e
Git: 使用命令克隆Master分支和其它分支
git clone https://[email protected]/acweb/vstudio-backend.gitgit clone -b develop https://[email protected]/acweb/vstudio-backend.git
JAVA: @ApplicationScoped注解maven坐标
<!-- https://mvnrepository.com/artifact/javax.enterprise/cdi-api --><dependency> <groupId>javax.enterprise</groupId> <artifactId>cdi-api</artifactId> <version>2.0</version> <scope>provi
JAVA: 打包tar.gz文件
<dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-compress</artifactId> <version>1.20</version> </dependency>package tju.SpringBootPostServer;import .
SpringBoot:配置优先级
java -jar ConfigTest-1.0-SNAPSHOT.jar --server.port=9988 --location=Newyork 执行jar包时带的参数优先级高于application.properties中配置,因此会进行覆盖
今日推荐
周排行