数据专栏

智能大数据搬运工,你想要的我们都有

科技资讯:

科技学院:

科技百科:

科技书籍:

网站大全:

软件大全:

HDC调试需求开发(15万预算),能者速来!>>> ubuntu14.04 opencv2.4.11 make *.cpp/.o文件时的错误 诚请高手指教!!chu @ubuntu :~/trafficintelligence/c$ make feature-based-trackingg++ -Wall -W -Wextra -std=c++11 -DUSE_OPENCV -DLINUX -O3 --fast-math -DNDEBUG -L../../klt -L/home/chu/trafficintelligence/trajectorymanagementandanalysis/trunk/src/TrajectoryManagementAndAnalysis -L/usr/local/lib feature-based-tracking.o utils.o Motion.o Parameters.o cvutils.o -o ../bin/feature-based-tracking -lm -lTrajectoryManagementAndAnalysis -lsqlite3 -lboost_program_options -lopencv_highgui -lopencv_core -lopencv_video -lopencv_ml -lopencv_features2d -lopencv_imgproc -lopencv_objdetect feature-based-tracking.o: In function `drawMatchesRelative(std::vector > const&, std::vector > const&, std::vector >&, cv::Mat&)': feature-based-tracking.cpp:(.text+0x181): undefined reference to `cv::line(cv::_InputOutputArray const&, cv::Point_, cv::Point_, cv::Scalar_ const&, int, int, int)' feature-based-tracking.cpp:(.text+0x205): undefined reference to `cv::circle(cv::_InputOutputArray const&, cv::Point_, int, cv::Scalar_ const&, int, int, int)' feature-based-tracking.o: In function `drawOpticalFlow(std::vector, std::allocator > > const&, std::vector, std::allocator > > const&, std::vector >, cv::Mat&)': feature-based-tracking.cpp:(.text+0x324): undefined reference to `cv::line(cv::_InputOutputArray const&, cv::Point_, cv::Point_, cv::Scalar_ const&, int, int, int)' feature-based-tracking.cpp:(.text+0x3ba): undefined reference to `cv::circle(cv::_InputOutputArray const&, cv::Point_, int, cv::Scalar_ const&, int, int, int)' feature-based-tracking.o: In function `trackFeatures(KLTFeatureTrackingParameters const&)': feature-based-tracking.cpp:(.text+0xe22): undefined reference to `cv::String::allocate(unsigned long)' feature-based-tracking.cpp:(.text+0xe45): undefined reference to `cv::VideoCapture::VideoCapture(cv::String const&)' feature-based-tracking.cpp:(.text+0xe52): undefined reference to `cv::String::deallocate()' feature-based-tracking.cpp:(.text+0xe79): undefined reference to `cv::VideoCapture::get(int) const' feature-based-tracking.cpp:(.text+0xe93): undefined reference to `cv::VideoCapture::get(int) const' feature-based-tracking.cpp:(.text+0xead): undefined reference to `cv::VideoCapture::get(int) const' feature-based-tracking.cpp:(.text+0x1513): undefined reference to `cv::imread(cv::String const&, int)' feature-based-tracking.cpp:(.text+0x1520): undefined reference to `cv::String::deallocate()' feature-based-tracking.cpp:(.text+0x2d75): undefined reference to `cv::calcOpticalFlowPyrLK(cv::_InputArray const&, cv::_InputArray const&, cv::_InputArray const&, cv::_InputOutputArray const&, cv::_OutputArray const&, cv::_OutputArray const&, cv::Size_, int, cv::TermCriteria, int, double)' feature-based-tracking.cpp:(.text+0x3840): undefined reference to `cv::String::allocate(unsigned long)' feature-based-tracking.cpp:(.text+0x385b): undefined reference to `cv::imshow(cv::String const&, cv::_InputArray const&)' feature-based-tracking.cpp:(.text+0x3868): undefined reference to `cv::String::deallocate()' feature-based-tracking.cpp:(.text+0x3a92): undefined reference to `cv::String::allocate(unsigned long)' feature-based-tracking.cpp:(.text+0x3ab1): undefined reference to `cv::imshow(cv::String const&, cv::_InputArray const&)' feature-based-tracking.cpp:(.text+0x3abe): undefined reference to `cv::String::deallocate()' feature-based-tracking.cpp:(.text+0x4438): undefined reference to `cv::String::deallocate()' feature-based-tracking.cpp:(.text+0x452a): undefined reference to `cv::String::deallocate()' feature-based-tracking.cpp:(.text+0x48eb): undefined reference to `cv::String::deallocate()' feature-based-tracking.cpp:(.text+0x4932): undefined reference to `cv::String::allocate(unsigned long)' feature-based-tracking.cpp:(.text+0x49e5): undefined reference to `cv::String::deallocate()' collect2: error: ld returned 1 exit status make: *** [feature-based-tracking] Error 1 chu @ubuntu :~/trafficintelligence/c$
技术问答
2015-12-02 17:19:00
HDC调试需求开发(15万预算),能者速来!>>>
各位朋友,我ubuntu14.04安装python3.4(系统自带)和opencv3.4,我测试了倒入import cv2模块没有出错,但是运行程序时出现如下错误: liuxin@sunshine-virtual-machine:~/work/python/opencv$ python3 test.py select timeout select timeout OpenCV Error: Assertion failed (total() == 0 || data != __null) in Mat, file /home/liuxin/opencv-3.4.0/modules/core/include/opencv2/core/mat.inl.hpp, line 500 Traceback (most recent call last): File "test.py", line 33, in CaptureVideo('capturevideo', 0) File "test.py", line 16, in CaptureVideo ret, frame = cap.read() cv2.error: /home/liuxin/opencv-3.4.0/modules/core/include/opencv2/core/mat.inl.hpp:500: error: (-215) total() == 0 || data != __null in function Mat
我的程序源代码如下: #!/usr/bin/env python3 # -*- coding: utf-8 -*- # Author: LiuXin import cv2 import numpy as np def CaptureVideo(window_name, camera_id):   # cv2.namedWindow(window_name)   cap = cv2.VideoCapture(camera_id)   while True:     # 如果cap没有打开则将其打开     if not cap.isOpened():       cap.open(camera_id)     # 逐帧(frame-by-frame)读取视频内容     ret, frame = cap.read()     if not ret:       print('capture err.')       break     # 将当前帧转换成灰度图片     #grey = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)     # 显示图片     #cv2.imshow(window_name, grey)     cv2.imshow(window_name, frame)     if cv2.waitKey(1) & 0xff == ord('q'):       break   # 释放摄像头并销毁所有窗口   cap.release()   cv2.destroyAllWindows() if __name__ == '__main__':   CaptureVideo('capturevideo', 0)
感谢各位大神指教。
技术问答
2017-12-27 00:28:00
HDC调试需求开发(15万预算),能者速来!>>>
各位大牛好:
遇到一个棘手问题需要请教各位有opencv经验开发的大牛。
在centos6.5/opencv2.4.9/jdk1.7/cmake3.0环境下,编译opencv 并支持java模块,编译成功后,通过opencv编译后的build 生成的test jar文件测试。
cmake命令: cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=RELEASE -DBUILD_FAT_JAVA_LIB=ON ..
测试语句如下:
java -cp opencv-test.jar:../../lib/junit-4.11.jar -Djava.ext.dirs=/home/opencv/opencv_test/libs -Djava.library.path=/home/opencv/opencv-2.4.9/lib org.junit.runner.JUnitCore org.opencv.test.objdetect.CascadeClassifierTest
运行后,始终报异常,异常信息如下:
[root @localhost jar]# java -cp opencv-test.jar:../../lib/junit-4.11.jar -Djava.ext.dirs=/home/opencv/opencv_test/libs -Djava.library.path=/home/opencv/opencv-2.4.9/build2/lib org.junit.runner.JUnitCore org.opencv.test.objdetect.CascadeClassifierTest
JUnit version 4.11
.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E
Time: 0.034
There were 17 failures:
1) testDetectMultiScaleMatListOfRectListOfIntegerListOfDoubleDoubleIntIntSizeSize(org.opencv.test.objdetect.CascadeClassifierTest)
java.lang.UnsatisfiedLinkError: org.opencv.core.Core.setErrorVerbosity_0(Z)V
at org.opencv.core.Core.setErrorVerbosity_0(Native Method)
at org.opencv.core.Core.setErrorVerbosity(Core.java:6638)
at org.opencv.test.OpenCVTestCase.setUp(Unknown Source)
at org.opencv.test.objdetect.CascadeClassifierTest.setUp(Unknown Source)
at junit.framework.TestCase.runBare(TestCase.java:139)
at junit.framework.TestResult$1.protect(TestResult.java:122)
at junit.framework.TestResult.runProtected(TestResult.java:142)
at junit.framework.TestResult.run(TestResult.java:125)
at junit.framework.TestCase.run(TestCase.java:129)
at junit.framework.TestSuite.runTest(TestSuite.java:255)
at junit.framework.TestSuite.run(TestSuite.java:250)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
at org.junit.runners.Suite.runChild(Suite.java:127)
at org.junit.runners.Suite.runChild(Suite.java:26)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
at org.junit.runner.JUnitCore.run(JUnitCore.java:138)
at org.junit.runner.JUnitCore.run(JUnitCore.java:117)
at org.junit.runner.JUnitCore.runMain(JUnitCore.java:96)
at org.junit.runner.JUnitCore.runMainAndExit(JUnitCore.java:47)
at org.junit.runner.JUnitCore.main(JUnitCore.java:40)
并且自己编写代码调用链接库也是报错:
下面粘出部分代码和报错信息:
System.out.println("\nRunning DetectFaceDemo");
// 导入opencv的库
System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
System.out.println("opencv version: "+Core.VERSION);
CascadeClassifier faceDetectorAll = new CascadeClassifier();
报错信息:
Exception in thread "main" java.lang.UnsatisfiedLinkError: org.opencv.objdetect.CascadeClassifier.CascadeClassifier_0()J
at org.opencv.objdetect.CascadeClassifier.CascadeClassifier_0(Native Method)
at org.opencv.objdetect.CascadeClassifier.(CascadeClassifier.java:38)
at com.tcl.uviewer.features.featuresImpl.Test.detectFace(Test.java:23)
at com.tcl.uviewer.features.featuresImpl.Test.main(Test.java:51)
以上是请求帮助详细信息,还请各位大牛指点迷津,万分感谢。
技术问答
2014-10-24 18:11:00
HDC调试需求开发(15万预算),能者速来!>>>
我现在利用poi导出excel时,边框设置都加上了,为什么还是显示出来,我的第一行和第二行都已经提前设置好了模板,从第三行开始进行填充数据,但是边框设置都加好了还是显示不出来,奇怪了。
1、边框设置
2、每行每列设置:
技术问答
2017-12-15 09:49:00
HDC调试需求开发(15万预算),能者速来!>>>

类似这种效果,有没有大神给个demo
技术问答
2016-09-06 11:03:00
HDC调试需求开发(15万预算),能者速来!>>>
XSSFClientAnchor好像只提供了用起点终点单元格的左上角来定位插入图片的位置和大小。
XSSFClientAnchor实例化方法中前4个参数设置了好像也没什么反应。
有没有可以通过像素来调整图片起始位置和大小的方法呐。
理想的效果是,图片1起始点是 第一行第一列的左上角,长度50个像素,高度根据长度自动调整。
图片2 起始点也是 第一行第一列左上角,X轴右移50个像素 ,高度根据长度自动调整。(就是紧挨着图片1显示,不受单元格限制)
以下是现在的代码,也就是用单元格来定位的方式,这样感觉很不灵活,有些需求很难实现。
还望高人指点,谢谢。
Drawing patri = sheet.createDrawingPatriarch();
XSSFClientAnchor anchor = null; File[] tempList = file.listFiles();for (int j = 0; j < tempList.length; j++) { File temp = tempList[j]; anchor = new XSSFClientAnchor(0, 0, 512, 125, 6 + j, 1 + i, 7 + j, 2 + i); ByteArrayOutputStream byteArrayOut = new ByteArrayOutputStream(); BufferedImage bufferImg = ImageIO.read(temp); String tempFileName = temp.getName(); String prefix = tempFileName.substring(tempFileName.lastIndexOf(".") + 1); if("png".equals(prefix)){ ImageIO.write(bufferImg, "png", byteArrayOut); }else{ ImageIO.write(bufferImg, "jpg", byteArrayOut); } anchor.setAnchorType(2); patri.createPicture(anchor ,wb.addPicture(byteArrayOut.toByteArray(), XSSFWorkbook.PICTURE_TYPE_JPEG)); }

技术问答
2016-05-19 16:39:00
HDC调试需求开发(15万预算),能者速来!>>>
我用XWPFDocument读取docx文件,无法直接获取到全文内容,只能挨个获取XWPFParagraph,但是明明在一行的内容,却不在一个run里,这就导致我无法替换
技术问答
2020-04-11 23:47:00
HDC调试需求开发(15万预算),能者速来!>>>
请问有大佬会用POI设置PPT的背景填充图片吗?
技术问答
2020-04-01 14:51:00
HDC调试需求开发(15万预算),能者速来!>>>
读excel时,new一个workbook时就出错了,workbook = new HSSFWorkbook(inStream);
报错信息:
java.lang.RuntimeException: Unexpected record type (org.apache.poi.hssf.record.DefaultRowHeightRecord) at org.apache.poi.hssf.record.aggregates.RowRecordsAggregate.(RowRecordsAggregate.java:97) at org.apache.poi.hssf.model.InternalSheet.(InternalSheet.java:172) at org.apache.poi.hssf.model.InternalSheet.createSheet(InternalSheet.java:127) at org.apache.poi.hssf.usermodel.HSSFWorkbook.(HSSFWorkbook.java:291) at org.apache.poi.hssf.usermodel.HSSFWorkbook.(HSSFWorkbook.java:243) at org.apache.poi.hssf.usermodel.HSSFWorkbook.(HSSFWorkbook.java:187) at org.apache.poi.hssf.usermodel.HSSFWorkbook.(HSSFWorkbook.java:322) at org.apache.poi.hssf.usermodel.HSSFWorkbook.(HSSFWorkbook.java:303) ...

奇怪的是,该excel打开另存一下就可以了,有谁知道这个怎么回事么?谢谢

技术问答
2014-07-23 10:26:00
HDC调试需求开发(15万预算),能者速来!>>>
网上查到很多资料,目前有2种方案.
1.大多开发使用的都是poi- HSSF 、XSSF以及SXSSF 进行获取复制源,然后进行单元格拷贝.
这种拷贝是基于Excel最小单位(单元格)的,可以保证完美复制.
但是如果被复制对象,是一个大Excel时,使用xxsf进行加载文件,势必会出现OOM
2.还有就是SAX解析Excle文件.
使用SAX不会导致OOM,它基于XML进行行读.故此针对大Excel也一点不虚
但是SAX解析的是Excel单元格内容,无法获取单元格格式.

求大佬指一条明路,大Excel如何才能完美复制?
技术问答
2020-02-18 10:44:00
HDC调试需求开发(15万预算),能者速来!>>>
Java poi 如何获取excel中一个单元格内部分加粗的字?
技术问答
2019-12-30 11:00:00
HDC调试需求开发(15万预算),能者速来!>>>
poi向word表格里面写数据,现在想往单元格里面写数据的时候,如果文字较多,默认的字号显示不开,可以缩放字号
技术问答
2019-12-17 16:58:00
HDC调试需求开发(15万预算),能者速来!>>>
excel一共有七万多条数据,但是getLastRowNum获取只有65535,是不是一定要升级为07版本
技术问答
2019-11-29 17:00:00
HDC调试需求开发(15万预算),能者速来!>>>
直接使用 paragraph.insertNewRun(i).addCarriageReturn(); 是没有效果的,使用 paragraph.insertNewRun(i).addBreak();输出到word中是向下的箭头,我需要的是回车的那种字符,另外说一下,我把那个单元格是设置的是悬挂缩进9字符
下面这种是我想要的效果,但是我不知道怎么实现

下面是目前的效果

技术问答
2019-11-17 18:10:00
HDC调试需求开发(15万预算),能者速来!>>>
POI精确设置word的某个行高和某个列宽
技术问答
2019-11-07 18:10:00
HDC调试需求开发(15万预算),能者速来!>>>
问题描述:由于业务需要调用第三方平台接口获取数据,但第三方接口需要传入一个execl的.xlsx文件,且限定了请求数据的数量。所以使用java的poi将全部4000多条数据分解成了4000多个.xlsx表格,每条表格只装一条数据,然后循环请求调用第三方的接口。问题来了:我使用poi所分的表格,传到第三平台后,一直返回错误,找了很久问题(格式方面的等等),最后才发现,我只需要点开一个分表(用wps打开),不做任何修改操作,然后保存,退出。再把表传过去,就能成功获取到数据。而且我发现,poi生成的一个表,大小为4kb。打开后保存,大小变成了9kb。所以说,poi生成的.xlsx表格一定是不完整的,少了什么数据,导致第三方的平台无法解析。想请教各位大佬,在不改变第三方接口的情况下,这种情况怎么解决?如果能知道poi生成的表少了什么东西就更好了。谢谢!
技术问答
2019-05-24 09:03:00
HDC调试需求开发(15万预算),能者速来!>>>
我用POI来读取excel文件导入数据库中
比如这次我导入的是eacelA
如果另外一个人不知道我代码的导入是适合什么样的excel就乱拿来一个excelB就导
我就得去判断一下是否符合我程序要求的模板样式
就想问问大家有没什么好的建议,怎么做最方便快捷一点。。少走弯路。
技术问答
2014-07-10 15:44:00
HDC调试需求开发(15万预算),能者速来!>>> 用了Java POI,导出Excel文件,用addMergedRegion方法来合并指定行、列的合并。但是现在想合并连续内容相同的单元格,并且合并完之后,该内容居中。求大神指导
技术问答
2014-03-20 15:54:00
HDC调试需求开发(15万预算),能者速来!>>>
代码:curl -XPOST xx.xx.xx.xx:9200/monitorjson_20170309/_search?pretty -d '{"size": 0,"aggs": {"sum_mony": {"sum": {"field": "monitor_trans_amt"}}}}'
只要monitor_trans_amt包含小数就会丢失这是为什么呢
技术问答
2017-03-11 22:01:00
HDC调试需求开发(15万预算),能者速来!>>>
数据库里的数据已经过亿了,准备用Elasticsearch做查询,查询主要是内部查询,条件也复杂,想在IK分词器和jcseg分词器选一个,这两个都支持自定义扩展词库,我想确认的是,如果扩展词库不断新增内容,那查询时,新增的词库对之前已经保存的数据生不生效?es会不会存储每条数据的分词结果?
技术问答
2020-06-23 18:24:08
HDC调试需求开发(15万预算),能者速来!>>>
请问以下mysql语句如何转换为es的查询语句
select count(*) as count from table group by DATE_FORMAT(time,'%Y%m%d%H') ORDER BY count desc limit 1;
技术问答
2020-05-21 19:46:00
HDC调试需求开发(15万预算),能者速来!>>>
我现在用efk(es+filebeat+kibana)作为日志平台,发现日志占用过大,所以想根据条件删除一些无用的日志,但是删除的过程中发现删除的速度也太慢了,目测(没有精确统计过)1-2分钟才能删10w条,照这个速度,万一日志生产的速度再快点,没准删除的还没新增的快呢。。。尴尬
目前用这种方式删除:
POST请求
http://192.168.112.82:9200/filebeat-7.6.2-2020.04.20-000001/_delete_by_query?conflicts=proceed
请求体: { "query": { "match": { "kubernetes.container.name": "rancher" } } }
之后改了一下查询语句,发现没多大用,还是特别慢 { "query": { "bool": { "filter": [ { "term": { "kubernetes.container.name": "rancher" } } ] } } }
技术问答
2020-04-23 15:25:00
HDC调试需求开发(15万预算),能者速来!>>>
项目中使用Log4j Scoket 传输数据,传输的的为Json数据,下面帖Logstash的配置
但是,最后到了es中多了很多log4j的很多东西,我该如何解析呢
技术问答
2017-12-08 17:51:00
HDC调试需求开发(15万预算),能者速来!>>>
我的查询条件为100.10-100.11的区间,但是100.10下面还有未知的子节点,比如100.10.10.10....

我怎么实现这种递归方式的查询
技术问答
2017-03-17 15:06:00
HDC调试需求开发(15万预算),能者速来!>>>
elasticsearch 数据结构存储
当前有一个系统A,博客,有博客的评论.,私有的业务数据
同时系统B,也有博客,评论,私有的业务数据
都是调用一个后台公共的博客,和评论 存储mysql
各自私有的数据,各自读取,
现在如果要放elasticsearch 里面的时候,是用2个索引,还是用同一个索引结构?
技术问答
2020-04-13 22:20:00
HDC调试需求开发(15万预算),能者速来!>>>
各位实现过的进来说说, 研究两天了......
环境: ES6.3
场景: 同一个mapping下 商店为父文档(其中存有配送费), 顾客为子文档, 多对多关系.
需求:
根据若干顾客和商店条件,查询每个顾客交易的所有商店的配送费的总和,并以此对所有顾客排序,并分页返回顾客数据.
技术问答
2020-04-08 17:31:00
HDC调试需求开发(15万预算),能者速来!>>>
elasticsearch.yml中可以配置security 是否认证,用trosportClient和restClient都可以设置账号密码认证,但是用spring-data-elasticsearch是如何设置的呢?官网好像也没有提到这个,难道都是直接连接整合spring boot?还望了解的大神们指点一番。
技术问答
2020-03-28 10:41:00
HDC调试需求开发(15万预算),能者速来!>>>
x-pack插件提供了安全、监控等额外功能,文章记录安装和密码设置。
这个 es功能大家用起来爽吗?
技术问答
2020-03-25 15:18:00
HDC调试需求开发(15万预算),能者速来!>>>
我使用下面的依赖整合elasticsearch。 < dependency > < groupId > org.springframework.boot < artifactId > spring-boot-starter-data-elasticsearch
bean类: @Document ( indexName = "bookshop" , type = "book" , shards = 1 , replicas = 0 ) public class Book { @Id private Integer id ; @Field ( type = FieldType . Text , analyzer = "ik_max_word" ) private String name ; @TableField ( exist = false ) private Category category ; private int type ; @Field ( type = FieldType . Keyword , index = false ) private double price ; @TableField ( value = "originalPrice" ) private double originalPrice ; @TableField ( exist = false ) private User user ; @Field ( type = FieldType . Keyword ) private String author ;
使用的是 ElasticsearchTemplate
创建索引,
导入数据是使用的 ElasticsearchRepository
导入数据时会把我不需要的字段存进elastissearch,为啥?
技术问答
2020-03-21 20:07:00
HDC调试需求开发(15万预算),能者速来!>>>
大家使用ELK时,x-pack怎么用?
购买?破解?不用?
技术问答
2020-03-17 00:16:00
HDC调试需求开发(15万预算),能者速来!>>>
java 实体类定义如下
es得mapping如下:

当先启动应用,再去创建索引设置mapping时 能访问,再重启时就报错,求教如何解决?
技术问答
2019-10-24 17:14:00
HDC调试需求开发(15万预算),能者速来!>>>
01-13号 在预发环境做了下云测(预发环境使用的也是生产环境ES)会有大量的企业搜索 然后线上的企业搜索突然就变慢了 直到今天还没恢复 01-13前最多2s就能返回 现在得需要20多秒 奇怪的是 数据量都没有大的变化 搜索语句也没变化 机器配置都没有变化 怎么感觉大量压测之后 搜索就变慢了呢? 实际有可能是什么原因呢 难道大量压测之后 触发了什么东西吗?



技术问答
2020-02-04 10:55:00
HDC调试需求开发(15万预算),能者速来!>>>
应用稳定运行了有半年了 最近几天线上突然多出了很多ES查询超时的异常 如 2020-01-20 11:52:35.536 ERROR 2852 --- [io-8022-exec-34] c.c.p.common.dao.SearchDao : Search person by id failed java.net.SocketTimeoutException: 30,000 milliseconds timeout on connection http-outgoing-158 [ACTIVE] at org.elasticsearch.client.RestClient.extractAndWrapCause(RestClient.java:789) ~[elasticsearch-rest-client-7.1.1.jar!/:7.1.1] at org.elasticsearch.client.RestClient.performRequest(RestClient.java:225) ~[elasticsearch-rest-client-7.1.1.jar!/:7.1.1] at org.elasticsearch.client.RestClient.performRequest(RestClient.java:212) ~[elasticsearch-rest-client-7.1.1.jar!/:7.1.1] at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1433) ~[elasticsearch-rest-high-level-client-7.1.1.jar!/:7.1.1] at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1403) ~[elasticsearch-rest-high-level-client-7.1.1.jar!/:7.1.1] at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:1373) ~[elasticsearch-rest-high-level-client-7.1.1.jar!/:7.1.1] at org.elasticsearch.client.RestHighLevelClient.get(RestHighLevelClient.java:699) ~[elasticsearch-rest-high-level-client-7.1.1.jar!/:7.1.1] at com.foo.bar.common.dao.SearchDao.searchPersonById(SearchDao.java:316) ~[common-0.0.1-SNAPSHOT.jar!/:0.0.1-SNAPSHOT]
觉得有点奇怪 就拿上面的这个查询来说 很简单 就是如下的查询而已 curl 'http://localhost:9200/person/_doc/30020382090?pretty'
并且这个时间点(11:52) 服务器的负载 CPU都不高 为什么也会有超时情况呢?
会是什么原因导致的呢?ES内部有超时次数指标吗?

技术问答
2020-01-21 11:45:00
HDC调试需求开发(15万预算),能者速来!>>>
@红薯 第一次搭建memcached 服务 通过 java 客户端 与 memcached 交互 发现空闲一段时间后 无法获取缓存数据 再尝试几次又可以了 改了很多配置还是不行 很是头疼 不知道什么地方出现了问题 求大神帮忙指点一下定位下问题所在
附上我的配置
static {
// 服务器列表和其权重
String[] servers = { " 172.24.176.128 :11211" };
//Integer[] weights = { 3 };

// 获取socke连接池的实例对象
SockIOPool pool = SockIOPool.getInstance("SP");

// 设置服务器信息
pool.setServers( servers );
// pool.setWeights( weights );

// 设置初始连接数、最小和最大连接数以及最大处理时间
pool.setInitConn( 5 );
pool.setMinConn( 5 );
pool.setMaxConn( 250 );
pool.setMaxIdle( 30*24*60*60 );

// 初始化连接池
pool.initialize();
技术问答
2015-10-13 15:35:00
HDC调试需求开发(15万预算),能者速来!>>>
我有些数据是从缓存拿的,但是这些存的数据都是设置了过期的时间的,有的时候我更新了数据,但是缓存并没有更新。一般是等缓存过去了之后才会取新数据往缓存再存一次。
我的问题是:我只要重启tomcat(此时缓存并没有过期),访问的时候就会取新的数据,而不是没过期的缓存的数据,所以重启tomcat跟取缓存有什么关系吗?
希望大家帮个忙,帮我看看,有没有知道原因的,谢谢了。
技术问答
2013-03-06 11:37:00
HDC调试需求开发(15万预算),能者速来!>>> 操作系统:window 7 64环境:wamp2.5 Apache Version :2.4.9 PHP Version :5.5.12 Server Software:Apache/2.4.9 (Win32) PHP/5.5.12? PHP Extension Build?:API20121212,TS,VC11? 下载的php_memcache.dll是php_memcache-3.0.8-5.5-ts-vc11-x64 找出extension_dir, 并把下载的php_memcache.dll 放入该路径.? 修改php.ini, 加入extension=php_memcache.dll,引入该dll 重启wamp2.5 再次观察phpinfo()信息,没有显示??memcache? 请教各位大牛,问题出在哪里?
技术问答
2015-09-02 11:16:00
HDC调试需求开发(15万预算),能者速来!>>>
不是Memcache,是Memcached
PHP代码中使用:new Memcached()
PHP手册中Memcache类和Memcached类,也是不同的两个类。
网上资料:1,Linux安装的Memcached 。2,windows安装Memcache
想问一下, 如何安装PHP Memcached 扩展 ( 不是Memcache )
技术问答
2017-02-11 16:05:00
HDC调试需求开发(15万预算),能者速来!>>>
用memcached做session共享的时候,在用 HttpSession session = httpRequest.getSession();获取session的时候,抛异常, 并且无法获取user用户信息,
异常信息
memched配置
有没有大神帮忙看一下,在配置其他服务器的时候,没有见到过
技术问答
2017-01-10 10:54:00
HDC调试需求开发(15万预算),能者速来!>>> 问下memcached和memcache有什么区别吗??如果有,区别在哪儿呢?
技术问答
2012-04-09 10:51:00
HDC调试需求开发(15万预算),能者速来!>>>
各位大神好,我想在项目中使用缓存,在网上查了一下,说这几个缓存框架比较好
Ehcache,memcached,Redis。但我不知道这几个缓存框架的使用场景。求用过的大神说说。
先说说我目前的项目
用java开发,SpringMVC+Spring+MyBaites,数据库使用 MySQL。
现在只是单个服务器,单个数据库。没有集群、分布式 。因为还没有到那个级别,未来5年也没到,所以就不考虑。
技术问答
2016-11-25 09:53:00