Comments (10)
Same issue, fixed ?
no,i haven't solved it yet.
from cat.
是arm架构吗,arm有几个地方需要修改下
是的,需要改哪里?
1.升级snappy包
org.xerial.snappy
snappy-java
1.1.10.3
不升级这个包,你会发现dump文件出不来,原因就是arm架构读取文件不行。org.unidal.cat.message.storage.internals.DefaultBlock#createOutputSteam 这个位置会卡住,导致无法存储logview。
2.com.dianping.cat.report.page.logview.service.LocalMessageService#buildNewReport
修改为如下
private String buildNewReport(ModelRequest request, ModelPeriod period, String domain, ApiPayload payload)
throws Exception {
String messageId = payload.getMessageId();
boolean waterfall = payload.isWaterfall();
MessageId id = MessageId.parse(messageId);
ByteBuf buf = m_finderManager.find(id);
MessageTree tree = null;
if (buf != null) {
tree = CodecHandler.decode(changeBuf(buf));
}
if (tree == null) {
Bucket bucket = m_bucketManager.getBucket(id.getDomain(),
NetworkInterfaceManager.INSTANCE.getLocalHostAddress(), id.getHour(), false);
if (bucket != null) {
bucket.flush();
ByteBuf data = bucket.get(id);
if (data != null) {
tree = CodecHandler.decode(changeBuf(data));
}
}
}
if (tree != null) {
ByteBuf content = ByteBufAllocator.DEFAULT.buffer(8192);
if (tree.getMessage() instanceof Transaction && waterfall) {
m_waterfall.encode(tree, content);
} else {
m_html.encode(tree, content);
}
try {
content.readInt(); // get rid of length
return content.toString(Charset.forName("utf-8"));
} catch (Exception e) {
// ignore it
}
}
return null;
}
private ByteBuf changeBuf(ByteBuf data) {
data.markReaderIndex();
int length = data.readInt();
data.resetReaderIndex();
ByteBuf readBytes = data.readBytes(length + 4);
readBytes.markReaderIndex();
readBytes.readInt();
return readBytes;
}
主要是changeBuf,因为0-4位被占用了,但是最新master分支,没有处理是从0字节开始读取,导致解析失败了。
from cat.
server配置如下:
<?xml version="1.0" encoding="utf-8"?>
<server-config>
<server id="default">
<properties>
<property name="local-mode" value="false"/>
<property name="job-machine" value="false"/>
<property name="send-machine" value="false"/>
<property name="alarm-machine" value="false"/>
<property name="hdfs-machine" value="false"/>
<property name="remote-servers" value="192.168.1.71:2281,192.168.1.72:2281,192.168.1.73:2281"/>
</properties>
<storage local-base-dir="/data/appdatas/cat/bucket/" max-hdfs-storage-time="15" local-report-storage-time="7" local-logivew-storage-time="7" har-mode="true" upload-thread="5">
<hdfs id="logview" max-size="128M" server-uri="hdfs://192.168.1.71/" base-dir="user/cat/logview"/>
<hdfs id="dump" max-size="128M" server-uri="hdfs://192.168.1.71/" base-dir="user/cat/dump"/>
<hdfs id="remote" max-size="128M" server-uri="hdfs://192.168.1.71/" base-dir="user/cat/remote"/>
</storage>
<consumer>
<long-config default-url-threshold="1000" default-sql-threshold="100" default-service-threshold="50">
<domain name="cat" url-threshold="500" sql-threshold="500"/>
<domain name="OpenPlatformWeb" url-threshold="100" sql-threshold="500"/>
</long-config>
</consumer>
</server>
<server id="192.168.1.71">
<properties>
<property name="job-machine" value="true"/>
<property name="alarm-machine" value="true"/>
<property name="send-machine" value="true"/>
</properties>
</server>
</server-config>
from cat.
from cat.
Same issue, fixed ?
from cat.
property name="remote-servers" value="192.168.1.71:2281,192.168.1.72:2281,192.168.1.73:2281"
这里的端口是cat的web端口8080吧?
from cat.
是arm架构吗,arm有几个地方需要修改下
from cat.
是arm架构吗,arm有几个地方需要修改下
是的,需要改哪里?
from cat.
property name="remote-servers" value="192.168.1.71:2281,192.168.1.72:2281,192.168.1.73:2281" 这里的端口是cat的web端口8080吧?
是的,这个是没问题的
from cat.
非arm架构,x64的linux部署的服务端,也出现了Sorry, the message is not there. It could be missing or archived,服务端配置文件如下:
<?xml version="1.0" encoding="utf-8"?>
<server-config>
<server id="default">
<properties>
<property name="local-mode" value="true"/>
<property name="job-machine" value="true"/>
<property name="send-machine" value="true"/>
<property name="alarm-machine" value="true"/>
<property name="hdfs-enable" value="false"/>
<property name="remote-servers" value="127.0.0.1:8080"/>
</properties>
<storage local-base-dir="/data/appdatas/cat/bucket/" max-hdfs-storage-time="15" local-report-storage-time="7" local-logivew-storage-time="7" har-mode="true" upload-thread="5">
<hdfs id="logview" max-size="128M" server-uri="hdfs://127.0.0.1/" base-dir="user/cat/logview"/>
<hdfs id="dump" max-size="128M" server-uri="hdfs://127.0.0.1/" base-dir="user/cat/dump"/>
<hdfs id="remote" max-size="128M" server-uri="hdfs://127.0.0.1/" base-dir="user/cat/remote"/>
</storage>
<consumer>
<long-config default-url-threshold="1000" default-sql-threshold="100" default-service-threshold="50">
<domain name="cat" url-threshold="500" sql-threshold="500"/>
<domain name="OpenPlatformWeb" url-threshold="100" sql-threshold="500"/>
</long-config>
</consumer>
</server>
<server id="127.0.0.1">
<properties>
<property name="job-machine" value="true"/>
<property name="alarm-machine" value="true"/>
<property name="send-machine" value="true"/>
</properties>
</server>
</server-config>
from cat.
Related Issues (20)
- 我爱我家集团
- 客户端注册不上3.1.0
- cat 客户端总是在尝试访问服务器的8080端口,但是我已经改成8000端口了 HOT 1
- 这个自定义监控规则是如何使用的呢
- 【求助】messageId在使用线程池中,能正常传递吗? HOT 1
- logMetricForCount(String name, int quantity, Map<String, String> tags)是否已经不支持
- cat客户端连接报[ERROR] Uncaught exception thrown out of thread(Cat-ChannelManager)
- docker-compose启动后,本地磁盘模式,logview报错“Sorry, the message is not there. It could be missing or archived.” HOT 1
- 使用tomcat9启动cat会报错
- CatFilter如何监控异步Servlet接口?
- 源文件缺少 HOT 1
- docker部署方式下,数据库初始化报错 HOT 1
- cat客户端考虑增加下rust的支持吗
- 请教一下,想把告警发到lark群里,这个要修改代码。 HOT 3
- cat client连接cat server 报错
- python sdk不支持 mac 吗 HOT 1
- 没见过这么难部署的玩意 HOT 2
- java.lang.NullPointerException
- master分支的最新代码,本地打包部署,总是看不到消息。Sorry, the message is not there. It could be missing or archived. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cat.