Calvin979 opened a new pull request, #2860:
URL: https://github.com/apache/hertzbeat/pull/2860

   ## What's changed?
   #2825 
   # **Not completed yet!!!!!**
   I've write codes that can run successfully in local. It can be tested by 
using `CentOS monitor`.
   
![image](https://github.com/user-attachments/assets/a46aab98-8282-4e55-8cf4-a09a5173ae46)
   
   ## How to test?
   1. Add VM options in IDE.
   `--add-opens=java.base/java.nio=org.apache.arrow.memory.core,ALL-UNNAMED`
   
![image](https://github.com/user-attachments/assets/9e90bcf1-dd53-476f-9714-74d3ff5e618f)
   2. Create CentOS monitor.
   
   ## 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 in 
`collect_rep.proto`.
   - `org.apache.hertzbeat.common.entity.arrow.ArrowVectorReader`: used for 
reading bytes arr that created by ArrowVectorWriter
   - `org.apache.hertzbeat.common.entity.arrow.RowWrapper` and 
`org.apache.hertzbeat.common.entity.arrow.ArrowCell`: when try to read data 
from ArrowVectorReader, we can get this two data structure.
   
![image](https://github.com/user-attachments/assets/302e86d0-edb2-4c78-8879-6ed61831faa3)
   
   
   ## Todo List
   - [ ] Complete comment on new method and class.
   - [ ] Delete Field and ValueRow in `collect_rep.proto`.
   - [ ] Modify collected data in package `hertzbeat-collector-basic`
   - [ ] Add JDK options in scripts. See also: 
https://arrow.apache.org/docs/java/install.html#java-compatibility
   
   
   ## Checklist
   
   - [ ]  I have read the [Contributing 
Guide](https://hertzbeat.apache.org/docs/community/code_style_and_quality_guide)
   - [ ]  I have written the necessary doc or comment.
   - [ ]  I have added the necessary unit tests and all cases have passed.
   
   ## Add or update API
   
   - [ ] I have added the necessary [e2e 
tests](https://github.com/apache/hertzbeat/tree/master/e2e) and all cases have 
passed.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to