You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by "hahait (via GitHub)" <gi...@apache.org> on 2023/03/16 09:00:36 UTC

[GitHub] [rocketmq-externals] hahait opened a new issue, #903: rocketmq-logstash-input installation failure

hahait opened a new issue, #903:
URL: https://github.com/apache/rocketmq-externals/issues/903

   The issue tracker is **ONLY** used for bug report and feature request. 
   
   Any question or RocketMQ proposal please use our [mailing lists](http://rocketmq.apache.org/about/contact/).
   
   **BUG REPORT**
   
   1. Please describe the issue you observed:
   
   - What did you do (The steps to reproduce)?
   ```shell
   export JAVA_HOME="/xxx/jdk-11.0.2"
   export PATH=$JAVA_HOME/bin:$PATH
   ```
   ```shell
   cd ~
   git clone --branch 8.0 --single-branch https://github.com/elastic/logstash.git
   cd logstash
   ./gradlew assemble
   ```
   
   <img width="828" alt="image" src="https://user-images.githubusercontent.com/20253863/225563028-096af874-1a5a-4d13-b187-7be63def22c6.png">
   
   ```shell
   cd ~
   wget https://github.com/apache/rocketmq-externals/archive/refs/heads/master.zip
   cp -ra rocketmq-externals/rocketmq-logstash-integration/rocketmq-logstash-input ./
   cd rocketmq-logstash-input/
   echo 'LOGSTASH_CORE_PATH=/xxx/logstash/logstash-core' >> gradle.properties
   ./gradlew gem
   ```
   <img width="766" alt="image" src="https://user-images.githubusercontent.com/20253863/225565498-4274c073-0a73-465f-ac2b-b22be66852e7.png">
   
   
   ```shell
   cd logstash
   bin/logstash-plugin install --no-verify --local /xxx/rocketmq-logstash-input/logstash-input-rocketmq-1.0.0.gem
   ```
   
   <img width="1264" alt="image" src="https://user-images.githubusercontent.com/20253863/225563782-e3fe6b2d-c7d6-4afe-bc3b-a05643e80a2a.png">
   
   
   - What did you expect to see?
   
   ```
   Plug-in installed successfully
   ```
   
   - What did you see instead?
   ```shell
   # Plug-in installation error:
   Using system java: /xxx/jdk-11.0.2/bin/java
   Unable to find JRuby.
   If you are a user, this is a bug.
   If you are a developer, please run 'rake bootstrap'. Running 'rake' requires the 'ruby' program be available.
   ```
   
   2. Please tell us about your environment:
   ```shell
   1. jdk version:  
   openjdk version "11.0.2" 2019-01-15
   OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
   OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)
   
   2. OS Version: 
   PRETTY_NAME="Debian GNU/Linux 10 (buster)"
   NAME="Debian GNU/Linux"
   VERSION_ID="10"
   VERSION="10 (buster)"
   VERSION_CODENAME=buster
   ID=debian
   HOME_URL="https://www.debian.org/"
   SUPPORT_URL="https://www.debian.org/support"
   BUG_REPORT_URL="https://bugs.debian.org/"
   
   3. kernel version:
   Linux xx-hostname 4.19.0-8-amd64 #1 SMP Debian 4.19.98-1+deb10u1 (2020-04-27) x86_64 GNU/Linux
   ```
   5. Other information (e.g. detailed explanation, logs, related issues, suggestions how to fix, etc):
   ```
   After logstash is compiled, the 'vendor' directory is not generated, Therefore, there is no 'vendor/jruby' directory
   ```
   <img width="909" alt="image" src="https://user-images.githubusercontent.com/20253863/225565967-bc546c6d-fd56-4bcc-b069-088266b3884e.png">


-- 
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: dev-unsubscribe@rocketmq.apache.org.apache.org

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


[GitHub] [rocketmq-externals] hahait commented on issue #903: rocketmq-logstash-input installation failure

Posted by "hahait (via GitHub)" <gi...@apache.org>.
hahait commented on issue #903:
URL: https://github.com/apache/rocketmq-externals/issues/903#issuecomment-1482444781

   这个问题,已经解决: 在安装 rocketmq input 插件时,要下载 logstash 官方提供的二进制包(与编译的 logstash 同版本),将插件装在这个二进制包里;


-- 
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: dev-unsubscribe@rocketmq.apache.org

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


[GitHub] [rocketmq-externals] hahait closed issue #903: rocketmq-logstash-input installation failure

Posted by "hahait (via GitHub)" <gi...@apache.org>.
hahait closed issue #903: rocketmq-logstash-input installation failure
URL: https://github.com/apache/rocketmq-externals/issues/903


-- 
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: dev-unsubscribe@rocketmq.apache.org

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