You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "ozgurkisir-qlik (via GitHub)" <gi...@apache.org> on 2024/05/22 07:26:16 UTC

[PR] camel-influxdb2 - missing dependencies added after integration test [camel-karaf]

ozgurkisir-qlik opened a new pull request, #293:
URL: https://github.com/apache/camel-karaf/pull/293

   Missing dependecies added for component camel-influxdb2


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] camel-influxdb2 - missing dependencies added after integration test [camel-karaf]

Posted by "jbonofre (via GitHub)" <gi...@apache.org>.
jbonofre merged PR #293:
URL: https://github.com/apache/camel-karaf/pull/293


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] camel-influxdb2 - missing dependencies added after integration test [camel-karaf]

Posted by "ozgurkisir-qlik (via GitHub)" <gi...@apache.org>.
ozgurkisir-qlik commented on PR #293:
URL: https://github.com/apache/camel-karaf/pull/293#issuecomment-2124511952

   ### HOW TO TEST camel-influxdb2 ?
   
   For testing 2 different operations of InfluxDB2  (ping, insert),
   
   - add the repo with updated camel-influxdb2 feature
   
   - install camel-blueprint,camel-groovy and camel-influxdb2 features on Apache Camel Karaf
   
   - prepare InfluxDB2 running on a docker container
   
   - deploy the blueprint file for testing
   
   - observe the logs
   
   
   ### Add the repo with updated camel-influxdb2 feature
   `repo-add file:/Users/ozgurkisir/talend_workspace/camel-karaf/features/target/feature/camel-features.xml `
   
   
   #Use the updated camel-features.xml to update the repo of your Apache Karaf (use the correct path to camel-features.xml. 
   Above is just an example file path for my environment)
   
   #Install camel-influxdb, camel-blueprint and camel-groovy features
   
   `feature:install camel-influxdb2`
   
   `feature:install camel-blueprint`
   
   `feature:install camel-groovy`
   
   #Check whether they're up&running
   
   `feature:list | grep camel-influxdb2`
   
   `feature:list | grep camel-blueprint`
   
   `feature:list | grep camel-groovy`
   
   ### Prepare and run a  InfluxDB2  docker container
   
   ```
   docker run \
    --name influxdb2 \
    --publish 8086:8086 \
    --env DOCKER_INFLUXDB_INIT_USERNAME=admin \
    --env DOCKER_INFLUXDB_INIT_PASSWORD=admin \
    --env DOCKER_INFLUXDB_INIT_ORG=my-org \
    --env DOCKER_INFLUXDB_INIT_BUCKET=my-bucket \
    influxdb:2
   
   
   ```
   
   Click http://localhost:8086  to enter web UI of InfluxDB2 to make initial settings and getting authentication token.
   
   <img width="1557" alt="Screenshot 2024-05-22 at 13 27 20" src="https://github.com/apache/camel-karaf/assets/157804972/4ff1914a-2efe-4483-bfc2-101f17ae539a">
   
   <img width="1510" alt="Screenshot 2024-05-22 at 13 27 51" src="https://github.com/apache/camel-karaf/assets/157804972/8d77912f-6e47-4895-9beb-16c915d66487">
   
   
   Unzip and edit file camel-influxdb2-blueprint.xml.zip
   
   [camel-influxdb2-blueprint.xml.zip](https://github.com/apache/camel-karaf/files/15402157/camel-influxdb2-blueprint.xml.zip)
   
   
   Copy the authentication token inside camel-influxdb2-blueprint.xml  file as the value of query parameter in myDbClient bean argument(where the below code snippet resides)
   
   <bean id="myDbClient" class="com.influxdb.client.InfluxDBClientFactory" factory-method="create" >
           <argument value="http://localhost:8086?token=_QGcCkmN0_tzesB9OemUNR7c3WEqk35LV8ymQRhiSy6x9tQIPw0DgWCSpcnC0B_kIEeNG6aLpAoCAV1-lDRzKA==" />
       </bean>
   
   
   
   Copy camel-influxdb2-blueprint.xml file under /deploy folder of your Karaf application
   
   
   Observe the logs from karaf console
   
   `log:tail`
   


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org