<@U0A71G31CDV> which version of starrock ubutu or ...
# questions-and-troubleshooting
l
@Rocky which version of starrock ubutu or starrock centos to used on on redhat server?
r
For a RedHat (RHEL) server, you should use the CentOS version of StarRocks. Since RedHat Enterprise Linux and CentOS are binary-compatible, the StarRocks packages built for CentOS 7.9 are the intended choice for RHEL environments. Key Details: * Recommended Version: Use the
centos
package (e.g.,
StarRocks-3.x.x-centos-amd64.tar.gz
). * Supported OS: StarRocks officially supports Red Hat Enterprise Linux 7.9 and CentOS 7.9. * Naming Convention: When downloading, look for the package format:
StarRocks-{Version}-centos-amd64.tar.gz
. Example Download Command: If you are installing StarRocks v3.3.3, you would use:
Copy code
bash
wget <https://releases.starrocks.io/starrocks/StarRocks-3.3.3-centos-amd64.tar.gz>
Note: Ensure your RedHat server meets the other prerequisites, such as having JDK 11 or later (for v3.3+) and a CPU that supports the AVX2 instruction set for optimal performance. Referencesdevelopers/build-starrocks/build_starrocks_on_ubuntu.mddeployment/deployment_prerequisites.mddeployment/prepare_deployment_files.mddevelopers/build-starrocks/Build_in_docker.md
l
@Rocky can i used starrock ubuntu version? I have try and starrock work well
r
Yes, you can certainly use StarRocks on Ubuntu! In fact, Ubuntu 22.04 is one of the officially supported and recommended operating systems for StarRocks deployments. Since you've already found that it works well, here are a few tips to ensure your Ubuntu environment is fully optimized for production: *1. Check CPU Support* StarRocks relies on the AVX2 instruction set for its vectorization engine to achieve high performance. You can verify your CPU support with:
Copy code
bash
cat /proc/cpuinfo | grep avx2
*2. Java Requirements* Make sure you have the correct JDK installed (StarRocks requires a JDK, not just a JRE): * StarRocks v3.3 & v3.4: JDK 11 or later. * StarRocks v3.5+: JDK 17 or later. * StarRocks v3.1 & v3.2: JDK 8 or 11. *3. System Configurations* For the best performance on Ubuntu, it is recommended to adjust a few kernel settings: * Disable Swap: Performance can drop significantly if the system starts swapping.
Copy code
bash
    sudo swapoff -a
* Set Overcommit Memory:
Copy code
bash
    echo 1 | sudo tee /proc/sys/vm/overcommit_memory
* Disable Transparent Huge Pages (THP): THP can sometimes cause memory allocation delays. It is usually recommended to set it to
madvise
or
never
. *4. File System* Using ext4 or xfs is recommended for the data partitions. If you ever need to build StarRocks from source on Ubuntu, there is also a specific guide for Compiling StarRocks on Ubuntu in the official documentation. Glad to hear it's working well for you! Let me know if you have any other questions as you set things up. Referencesdevelopers/build-starrocks/build_starrocks_on_ubuntu.mddeployment/deployment_prerequisites.mddeployment/environment_configurations.mddeployment/shared_data/feature-support-shared-data.mdrelease_notes/release-2.2.mddata_source/feature-support-data-lake-analytics.mddevelopers/build-starrocks/Build_in_docker.md
l
@Rocky why i can run starrock ubuntu on redhat server?
r
You can run StarRocks on both Ubuntu and Red Hat because the software is designed to be compatible with standard Linux environments, provided certain system requirements are met. Here is why a StarRocks binary (even one you might associate with Ubuntu) works on a Red Hat server: 1. Generic Linux Binaries StarRocks official releases are typically distributed as generic Linux tarballs (
.tar.gz
) rather than distribution-specific packages (like
.deb
or
.rpm
). These binaries are compiled to be compatible with most modern Linux distributions that use standard libraries. 2. Standard Library Compatibility (glibc) The StarRocks Backend (BE) is written in C++. It relies on the GNU C Library (
glibc
). As long as your Red Hat server has a version of
glibc
that is equal to or newer than the version used to compile the binary, it will run successfully. * Note: If you compiled StarRocks yourself on a very new version of Ubuntu and moved it to an older version of Red Hat (like RHEL 7), you might encounter library version conflicts. However, official releases are built for broad compatibility. 3. Java Platform Independence The StarRocks Frontend (FE) is written in Java. Because Java runs on a Virtual Machine (JVM), the FE code is platform-independent. As long as you have a supported JDK (like JDK 11 or 17) installed on your Red Hat server, the FE will run exactly as it does on Ubuntu. 4. Shared System Requirements Both Ubuntu and Red Hat provide the underlying infrastructure StarRocks needs: * Instruction Sets: Both OSs allow StarRocks to access the AVX2 instruction set on the CPU, which is required for its vectorized execution engine. * Kernel Features: Both support the necessary kernel parameters (like
max_map_count
and
ulimit
settings) required for high-performance database operations. Official Support According to the StarRocks documentation, the following operating systems are officially supported: * Red Hat Enterprise Linux (RHEL) / CentOS: 7.9 or higher. * Ubuntu: 22.04 or higher. Recommendation: Even though the binaries are compatible, ensure your Red Hat environment is tuned correctly by checking the
ulimit
and
vm.max_map_count
settings as recommended in the StarRocks Deployment Prerequisites. Referencesdeployment/deployment_prerequisites.mddevelopers/build-starrocks/build_starrocks_on_ubuntu.mddevelopers/build-starrocks/Build_in_docker.mddeployment/environment_configurations.mdfaq/Deploy_faq.md
k
while it may run on centos with binary built for ubuntu, doesn't mean you should do this. undiscovered ABI compatibility may be the price to pay.
p
i don’t quite understand , why u want to use a ubuntu version of starrocks in redhat server ? its obvioursly should use a centos version which is a very simple answer