草庐IT

prom-elastic-alert

全部标签

java - Spring Data Elastic Search - 按距离对地理位置进行排序

给定一个地理定位点,我试图找到10公里以内的一些地点,并按离给定位置最近的地点对其进行排序。我设法返回了10公里以内的位置列表,但是当我尝试对其进行排序时,出现了异常:我正在使用以下版本:3.2.12.61.0.0.BUILD-SNAPSHOT3.2.5.RELEASEjava代码如下:publicListfindByGeoLocation(Doublelongitude,Doublelatitude,StringchannelKey,Stringdistance){if(StringUtils.isEmpty(distance)){distance=defaultRadius;}Ge

java - 为什么 Elastic Search java API 会忽略我们的查询限制?

我正在使用这段代码:client.prepareSearch("test").addSort("dateUpdated",SortOrder.DESC).setSearchType(SearchType.DFS_QUERY_AND_FETCH).setIndices("reach").setTypes(types).setQuery(QueryBuilders.queryString(queryString)).setFrom(0).setSize(2).setExplain(true).execute().actionGet()客户端是远程客户端。总共有5个结果,根据我上面的内容,我

java - 获取 javax.net.ssl.SSLException : Received fatal alert: protocol_version while scraping data using Jsoup

我正在尝试使用Jsoup从站点获取数据。该网站的链接是Clickhere!这是我获取数据的代码。`//WARNING:doitonlyifsecurityisn'timportant,otherwiseyouhave//tofollowthisadvices:http://stackoverflow.com/a/7745706/1363265//CreateatrustmanagerthatdoesnotvalidatecertificatechainsTrustManager[]trustAllCerts=newTrustManager[]{newX509TrustManager()

java - AWS Elastic Beanstalk 上的 Spring Boot/Tomcat 仅显示 404 页面

我有一个SpringBoot应用程序,它在Tomcat下的本地主机上运行良好。当我将其打包为WAR并将其部署到ElasticBeanstalk上时,我只得到404页面。我尝试了许多不同的调整来尝试让它工作,但我不知所措。我已将打包配置为WAR,IntelliJ生成工件:com.ideaEngineapp_deployment0.0.1-SNAPSHOTwarUTF-8UTF-8com.xxxxxxxx.WebappApplication1.8我还包括了Tomcatorg.springframework.bootspring-boot-starter-tomcatprovidedElas

java 连接mysql,出现 Caused by: javax.net.ssl.SSLException: Received fatal alert: internal_error 错误

问题在本地部署tomcat项目时,卡在了“Causedby:javax.net.ssl.SSLException:Receivedfatalalert:internal_error”排查        查了资料发现在MySQL5.7.41及之前的版本,安全性较低,存在任何用户都可以连接上的test库,所以官方在5.7.43版本加大了对隐私的保护。并且采用了默认useSSL=true值防止对数据库的随意修改,导致项目启动时连接不上数据库解决方案数据库连接选项中增加参数传递:useSSL=false,再次测试即可解决问题另,发现数据库中出现中文乱码的情况,数据库URL中添加characterEnc

error Error: write EPROTO...SSL routines:ssl3_read_bytes:tlsv1 alert internal...SSL alert number 80

一、问题描述今天前端小伙伴反馈,有个项目编译失败,报错如下:+node-vv16.17.0+npm-v8.15.0+npminstall-gyarn-registry=https://registry.npm.taobao.orgchanged1packagein1m+yarn-v1.22.21+yarninstallyarninstallv1.22.21[1/4]Resolvingpackages...errorError:writeEPROTO139798789396352:error:14094438:SSLroutines:ssl3_read_bytes:tlsv1alertinter

torch.distributed.elastic.multiprocessing.errors.ChildFailedError

问题Traceback(mostrecentcalllast):File"/ssd1/miniconda3/envs/pytorch2.1.2/bin/torchrun",line33,insys.exit(load_entry_point('torch==2.1.2','console_scripts','torchrun')())File"/ssd1/miniconda3/envs/pytorch2.1.2/lib/python3.8/site-packages/torch/distributed/elastic/multiprocessing/errors/__init__.py",li

Java8,HttpClient,接收 "Received fatal alert: handshake_failure"

我们正在尝试访问以下URL(仅作为示例)https://broadly.vice.com/en_us/article/eating-out-as-a-feminist但我们收到“收到致命警报:handshake_failure”。我们正在使用JDK1.8.60、HttpClient4.3.6并且已经将jce-policy替换为unlimited策略。激活-Djavax.net.debug=all后我们收到:Allowunsaferenegotiation:falseAllowlegacyhellomessages:trueIsinitialhandshake:trueIssecurer

【es】解决es报错failed to authenticate user [elastic]

【es】解决es报错failedtoauthenticateuser[elastic]1.背景某天使用接口查询es数据时出现报错,没有返回数据。想到是测试环境的es因为没内存又挂了,于是上服务器重启服务。但是重启后等待一段时间再次查询es,还是同样报错,显示连接拒接。于是lsof-i:9200查看端口,端口没起来。查看日志,显示org.elasticsearch.action.UnavailableShardsException:atleastoneprimaryshardfortheindex[.security-7]isunavailable"failedtoauthenticateuse

java - 无法通过 Java 代码连接到服务器。获取 javax.net.ssl.SSLHandshakeException : Received fatal alert: handshake_failure

我正在尝试使用rest-assured框架在AWS上为RESTAPI构建测试自动化工具。我只是尝试使用简单的HTTPPOST并检查输出JSON正文。但是当我在Eclipse中运行它时,我得到了SSLHandshakeException。我确实尝试调查这个问题,发现它可能与服务器证书(Receivedfatalalert:handshake_failurethroughSSLHandshakeException)有关,但是当我通过POSTMAN对其进行测试时,它运行良好并提供了所需的输出。此外,如果我通过浏览器点击URI,确实会从服务器获得响应(错误消息)。我是SSL编程的新手,想知道它