[ https://issues.apache.org/jira/browse/METRON-1701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16563569#comment-16563569 ]
ASF GitHub Bot commented on METRON-1701: ---------------------------------------- Github user nickwallen commented on a diff in the pull request: https://github.com/apache/metron/pull/1136#discussion_r206503184 --- Diff: metron-sensors/pycapa/README.md --- @@ -239,25 +239,47 @@ The probe can be used in a Kerberized environment. Follow these additional step * The keytab used is located at `/etc/security/keytabs/metron.headless.keytab` * The service principal is `met...@example.com` + If it is not, ensure that you have `libsasl` or `libsasl2` installed. On CentOS, this can be installed with the following command. + ``` + yum install -y cyrus-sasl cyrus-sasl-devel cyrus-sasl-gssapi + ``` + + 1. Use the non-binary wheel to install confluent-kafka-python. + + The Python client README (https://github.com/confluentinc/confluent-kafka-python) has an important note for Kerberos case: + ``` + **NOTE:** The pre-built Linux wheels do NOT contain SASL Kerberos support. + If you need SASL Kerberos support you must install librdkafka and + its dependencies using the above repositories and then build + confluent-kafka from source. + ``` + + so you will need to use the non-binary wheel to install confluent-kafka-python and build/install librdkafka separately + 1. Build Librdkafka with SASL support (` --enable-sasl`) and install at your chosen $PREFIX. ``` - wget https://github.com/edenhill/librdkafka/archive/v0.9.4.tar.gz -O - | tar -xz - cd librdkafka-0.9.4/ + wget https://github.com/edenhill/librdkafka/archive/v0.11.5.tar.gz -O - | tar -xz + cd librdkafka-0.11.5/ ./configure --prefix=$PREFIX --enable-sasl make make install ``` 1. Validate Librdkafka does indeed support SASL. Run the following command and ensure that `sasl` is returned as a built-in feature. ``` - $ examples/rdkafka_example -X builtin.features - builtin.features = gzip,snappy,ssl,sasl,regex - ``` - - If it is not, ensure that you have `libsasl` or `libsasl2` installed. On CentOS, this can be installed with the following command. - ``` - yum install -y cyrus-sasl cyrus-sasl-devel cyrus-sasl-gssapi + $ examples/rdkafka_example -X builtin.features + builtin.features = gzip,snappy,ssl,sasl,regex,lz4,sasl_gssapi,sasl_plain,sasl_scram,plugins ``` +1. The source install of confluent-kafka: + + ``` + // If you have already installed, remove the binary wheel python client first, repeat until it says no longer installed --- End diff -- Can you extract the comment from the code block? Seems like it just just be part of the text. > Update General notes on the installation of Pycapa on Kerberized cluster > ------------------------------------------------------------------------ > > Key: METRON-1701 > URL: https://issues.apache.org/jira/browse/METRON-1701 > Project: Metron > Issue Type: Bug > Reporter: Mohan > Assignee: Mohan > Priority: Minor > > Update the steps to use Pycapa with Kerberos -- This message was sent by Atlassian JIRA (v7.6.3#76005)