[ 
https://issues.apache.org/jira/browse/IMPALA-12955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18083353#comment-18083353
 ] 

Aleksandr Efimov commented on IMPALA-12955:
-------------------------------------------

I'm taking a look at this.

I have a local prototype that links impala-profile-tool against a narrower set 
of backend objects instead of the full backend link set. In my local build this 
removes the unused runtime dependencies listed in the Jira, including JVM, Kudu 
client, SASL/Kerberos and OpenSSL libraries, while keeping the profile-tool 
tests passing.

The refactor still needs some cleanup and validation before I post a Gerrit 
change.

> impala-profile-tool depends on unused so files
> ----------------------------------------------
>
>                 Key: IMPALA-12955
>                 URL: https://issues.apache.org/jira/browse/IMPALA-12955
>             Project: IMPALA
>          Issue Type: Bug
>            Reporter: Quanlong Huang
>            Assignee: Aleksandr Efimov
>            Priority: Major
>
> When I want to deploy impala-profile-tool, I have to copy lots of so files. 
> Some of them are actually unused, e.g. libjvm.so, libkudu_client.so.0. The 
> full dependency list:
> {noformat}
> $ ldd be/build/debug/util/impala-profile-tool
>       linux-vdso.so.1 (0x00007ffcb5dae000)
>       libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 
> (0x00007fca6dd63000)
>       libsasl2.so.2 => /usr/lib/x86_64-linux-gnu/libsasl2.so.2 
> (0x00007fca6db48000)
>       libjvm.so => 
> /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/libjvm.so 
> (0x00007fca6cade000)
>       libkudu_client.so.0 => 
> /home/quanlong/workspace/Impala/toolchain/toolchain-packages-gcc10.4.0/kudu-e742f86f6d/debug/lib/libkudu_client.so.0
>  (0x00007fca6c1db000)
>       librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fca6bfd3000)
>       libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fca6bdcf000)
>       libkrb5.so.3 => /usr/lib/x86_64-linux-gnu/libkrb5.so.3 
> (0x00007fca6baf9000)
>       libgssapi_krb5.so.2 => /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2 
> (0x00007fca6b8ae000)
>       libssl.so.1.1 => /usr/lib/x86_64-linux-gnu/libssl.so.1.1 
> (0x00007fca6b621000)
>       libcrypto.so.1.1 => /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 
> (0x00007fca6b156000)
>       libstdc++.so.6 => 
> /home/quanlong/workspace/Impala/toolchain/toolchain-packages-gcc10.4.0/kudu-e742f86f6d/debug/lib/libstdc++.so.6
>  (0x00007fca6dfb6000)
>       libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fca6adb8000)
>       libgcc_s.so.1 => 
> /home/quanlong/workspace/Impala/toolchain/toolchain-packages-gcc10.4.0/kudu-e742f86f6d/debug/lib/libgcc_s.so.1
>  (0x00007fca6ad9e000)
>       libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fca6a9ad000)
>       /lib64/ld-linux-x86-64.so.2 (0x00007fca6df82000)
>       libk5crypto.so.3 => /usr/lib/x86_64-linux-gnu/libk5crypto.so.3 
> (0x00007fca6a77b000)
>       libcom_err.so.2 => /lib/x86_64-linux-gnu/libcom_err.so.2 
> (0x00007fca6a577000)
>       libkrb5support.so.0 => /usr/lib/x86_64-linux-gnu/libkrb5support.so.0 
> (0x00007fca6a36c000)
>       libkeyutils.so.1 => /lib/x86_64-linux-gnu/libkeyutils.so.1 
> (0x00007fca6a168000)
>       libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 
> (0x00007fca69f4e000) {noformat}
> We should remove unused so files in the dependency.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to