1、查询索引是index1,类型是blog,id是8、10和索引是lib3,类型是user,id是1、2、3的文档 @Test public void testMultiGet() throws IOException, InterruptedException, ExecutionExceptio ...
分类:
编程语言 时间:
2019-12-23 00:27:49
阅读次数:
131
夜间多个任务同时并行,总有几个随机性有任务失败,查看日志: cat -n ads_channel.log |grep "Caused by" 7732 Caused by: java.util.concurrent.ExecutionException: java.io.IOException: R ...
分类:
编程语言 时间:
2019-12-21 13:26:05
阅读次数:
117
package net.bill99.httpconsel; import java.io.IOException; import java.util.*; import java.util.Map.Entry; import org.apache.http.*; import org.apache ...
分类:
Web程序 时间:
2019-12-20 16:57:40
阅读次数:
115
1 概述 解决hadoop启动hdfs时,datanode无法启动的问题。错误为: 2 问题描述 执行start-dfs.sh后,根据打印日志,可以看到分别执行了NameNode、DataNode的操作。 但是执行jps查看启动结果时,返现DataNode并没有启动。 3 查找问题 很是费解,刚刚还 ...
分类:
编程语言 时间:
2019-12-19 21:14:13
阅读次数:
131
测试jenkins构建,报错如下 手动确定了 和 都是正常存在的目录,但还是报错没有文件或目录 于是乎手动执行了一下上面提示的命令: 哦吼,问题出来了,缺少依赖包 ,安装 ...
分类:
编程语言 时间:
2019-12-19 12:47:28
阅读次数:
284
public static JSONObject doFormDataPost(File file, String sURL) throws IOException { HttpClient context = new DefaultHttpClient(); HttpPost post = new ...
分类:
其他好文 时间:
2019-12-17 22:31:12
阅读次数:
491
异常类throwable:{error:IOError,linkageError,threadDeath,AWTError{Exception:SQLExpection,RuntimeExteption:(IndexOutOfBoundsException,NullPointerException,ArithmetchException),IOException:FileNotFoundExcep
分类:
其他好文 时间:
2019-12-17 00:52:33
阅读次数:
124
请求天气接口(http://wthrcdn.etouch.cn/weather_mini?citykey=101210101) 乱码问题 public static String sendGet2(String url) throws IOException { //实例化httpclient,(4 ...
分类:
其他好文 时间:
2019-12-16 19:15:21
阅读次数:
187
NIO selector 多路复用reactor线程模型 package com.study.hc.net.nio; import java.io.IOException; import java.net.InetSocketAddress; import java.nio.ByteBuffer; ...
分类:
编程语言 时间:
2019-12-16 10:11:51
阅读次数:
218
```java import java.io.*;public class Translate { public static void main(String[] args) throws IOException { String fileName = "a"; File a = new File... ...
分类:
Web程序 时间:
2019-12-15 12:45:33
阅读次数:
124