-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature] integrate with Apache Arrow #2864
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
license-eye has checked 2888 files.
Valid | Invalid | Ignored | Fixed |
---|---|---|---|
1491 | 2 | 1395 | 0 |
Click to see the invalid file list
- hertzbeat-collector/hertzbeat-collector-common/src/main/java/org/apache/hertzbeat/collector/collect/common/MetricsDataBuilder.java
- hertzbeat-common/src/main/java/org/apache/hertzbeat/common/entity/message/CollectRep.java
Use this command to fix any missing license headers
```bash
docker run -it --rm -v $(pwd):/github/workspace apache/skywalking-eyes header fix
</details>
@@ -0,0 +1,23 @@ | |||
package org.apache.hertzbeat.collector.collect.common; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
package org.apache.hertzbeat.collector.collect.common; | |
/* | |
* Licensed to the Apache Software Foundation (ASF) under one | |
* or more contributor license agreements. See the NOTICE file | |
* distributed with this work for additional information | |
* regarding copyright ownership. The ASF licenses this file | |
* to you under the Apache License, Version 2.0 (the | |
* "License"); you may not use this file except in compliance | |
* with the License. You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, | |
* software distributed under the License is distributed on an | |
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
* KIND, either express or implied. See the License for the | |
* specific language governing permissions and limitations | |
* under the License. | |
*/ | |
package org.apache.hertzbeat.collector.collect.common; |
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
// Generated by the protocol buffer compiler. DO NOT EDIT! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Generated by the protocol buffer compiler. DO NOT EDIT! | |
/* | |
* Licensed to the Apache Software Foundation (ASF) under one | |
* or more contributor license agreements. See the NOTICE file | |
* distributed with this work for additional information | |
* regarding copyright ownership. The ASF licenses this file | |
* to you under the Apache License, Version 2.0 (the | |
* "License"); you may not use this file except in compliance | |
* with the License. You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, | |
* software distributed under the License is distributed on an | |
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
* KIND, either express or implied. See the License for the | |
* specific language governing permissions and limitations | |
* under the License. | |
*/ | |
// Generated by the protocol buffer compiler. DO NOT EDIT! |
@@ -0,0 +1,23 @@ | |||
package org.apache.hertzbeat.collector.collect.common; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
package org.apache.hertzbeat.collector.collect.common; | |
/* | |
* Licensed to the Apache Software Foundation (ASF) under one | |
* or more contributor license agreements. See the NOTICE file | |
* distributed with this work for additional information | |
* regarding copyright ownership. The ASF licenses this file | |
* to you under the Apache License, Version 2.0 (the | |
* "License"); you may not use this file except in compliance | |
* with the License. You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, | |
* software distributed under the License is distributed on an | |
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
* KIND, either express or implied. See the License for the | |
* specific language governing permissions and limitations | |
* under the License. | |
*/ | |
package org.apache.hertzbeat.collector.collect.common; |
@@ -20,4411 +1,1802 @@ | |||
// Generated by the protocol buffer compiler. DO NOT EDIT! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Generated by the protocol buffer compiler. DO NOT EDIT! | |
/* | |
* Licensed to the Apache Software Foundation (ASF) under one | |
* or more contributor license agreements. See the NOTICE file | |
* distributed with this work for additional information | |
* regarding copyright ownership. The ASF licenses this file | |
* to you under the Apache License, Version 2.0 (the | |
* "License"); you may not use this file except in compliance | |
* with the License. You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, | |
* software distributed under the License is distributed on an | |
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
* KIND, either express or implied. See the License for the | |
* specific language governing permissions and limitations | |
* under the License. | |
*/ | |
// Generated by the protocol buffer compiler. DO NOT EDIT! |
👍👍 great! i need more time to review🤭 |
Signed-off-by: tomsun28 <[email protected]>
Signed-off-by: tomsun28 <[email protected]>
Signed-off-by: shown <[email protected]>
Signed-off-by: tomsun28 <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
license-eye has checked 2892 files.
Valid | Invalid | Ignored | Fixed |
---|---|---|---|
1494 | 3 | 1395 | 0 |
Click to see the invalid file list
- hertzbeat-common/src/main/java/org/apache/arrow/vector/table/ArrowTable.java
- hertzbeat-common/src/main/java/org/apache/hertzbeat/common/serialize/RedisMetricsDataCodec.java
- hertzbeat-common/src/test/java/org/apache/arrow/vector/table/ArrowTableTest.java
Use this command to fix any missing license headers
```bash
docker run -it --rm -v $(pwd):/github/workspace apache/skywalking-eyes header fix
</details>
@@ -0,0 +1,90 @@ | |||
package org.apache.arrow.vector.table; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
package org.apache.arrow.vector.table; | |
/* | |
* Licensed to the Apache Software Foundation (ASF) under one | |
* or more contributor license agreements. See the NOTICE file | |
* distributed with this work for additional information | |
* regarding copyright ownership. The ASF licenses this file | |
* to you under the Apache License, Version 2.0 (the | |
* "License"); you may not use this file except in compliance | |
* with the License. You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, | |
* software distributed under the License is distributed on an | |
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
* KIND, either express or implied. See the License for the | |
* specific language governing permissions and limitations | |
* under the License. | |
*/ | |
package org.apache.arrow.vector.table; |
@@ -0,0 +1,90 @@ | |||
package org.apache.arrow.vector.table; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
package org.apache.arrow.vector.table; | |
/* | |
* Licensed to the Apache Software Foundation (ASF) under one | |
* or more contributor license agreements. See the NOTICE file | |
* distributed with this work for additional information | |
* regarding copyright ownership. The ASF licenses this file | |
* to you under the Apache License, Version 2.0 (the | |
* "License"); you may not use this file except in compliance | |
* with the License. You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, | |
* software distributed under the License is distributed on an | |
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
* KIND, either express or implied. See the License for the | |
* specific language governing permissions and limitations | |
* under the License. | |
*/ | |
package org.apache.arrow.vector.table; |
Signed-off-by: tomsun28 <[email protected]>
Signed-off-by: tomsun28 <[email protected]>
Signed-off-by: tomsun28 <[email protected]>
Signed-off-by: tomsun28 <[email protected]>
Signed-off-by: tomsun28 <[email protected]>
Signed-off-by: tomsun28 <[email protected]>
Signed-off-by: tomsun28 <[email protected]>
Signed-off-by: tomsun28 <[email protected]>
Signed-off-by: tomsun28 <[email protected]>
Signed-off-by: tomsun28 <[email protected]>
Signed-off-by: tomsun28 <[email protected]>
Signed-off-by: tomsun28 <[email protected]>
Signed-off-by: tomsun28 <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍👍👍 Done! we need more test after merge.
main test points.
- collector cluster mode
- kafka common queue
- inner memory common queue
What's changed?
Relate to: #2825
How to test?
--add-opens=java.base/java.nio=org.apache.arrow.memory.core,ALL-UNNAMED
Operations in Apache Arrow
Please refer package: org.apache.hertzbeat.common.entity.arrow
I've organized operations and data structure about arrow.
org.apache.hertzbeat.common.entity.arrow.ArrowVectorWriter
: used for writing data and tranferring to bytes arr, which can be set incollect_rep.proto
.org.apache.hertzbeat.common.entity.arrow.ArrowVectorReader
: used for reading bytes arr that created by ArrowVectorWriterorg.apache.hertzbeat.common.entity.arrow.RowWrapper
andorg.apache.hertzbeat.common.entity.arrow.ArrowCell
: when try to read data from ArrowVectorReader, we can get this two data structure.Checklist
Add or update API