You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Apache Oozie本地安装失败求助:Mac系统遇连接拒绝错误

Troubleshooting "java.net.ConnectException Connection refused" with Apache Oozie on Mac OS High Sierra 10.13.3

First, let's reference the partial output you shared when running oozied.sh start:

Setting OOZIE_HOME: /Users/akirna/oozie
Setting OOZIE_CONFIG: /Users/akirna/oozie/conf
Sourcing: /Users/akirna/oozie/conf/oozie-env.sh
setting CATALINA_OPTS="$CATALINA_OPTS -Xmx1024m"
Setting OOZIE_CONFIG_FILE: oozie-site.xml
Setting OOZIE_DATA: /Users/akirna/oozie/data
Setting OOZIE_...

A connection refused error almost always means Oozie either failed to start fully, or your client can't reach the running service. Let's walk through the most common fixes:

  • Check Oozie's Startup Logs
    The first thing to do is dig into the logs to see why Oozie isn't starting properly. Head to $OOZIE_HOME/logs and look at files like catalina.out or oozie.log. You'll likely find specific errors here—things like database connection failures, missing dependencies, or misconfigured properties that are stopping the service from launching.

  • Verify the Oozie Base URL
    Open $OOZIE_HOME/conf/oozie-site.xml and check the oozie.base.url property. For local testing, it should point to a URL your Mac can resolve, like:

    <property>
      <name>oozie.base.url</name>
      <value>http://localhost:12000/oozie</value>
    </property>
    

    If this is set to a hostname that's not in your local hosts file or can't be resolved, it'll cause connection issues. Stick with localhost for local setups.

  • Check if Port 12000 is in Use
    Oozie uses port 12000 by default. If another process is hogging this port, Oozie can't bind to it. Run this command to check:

    lsof -i :12000
    

    If you get output, kill the conflicting process with kill -9 <PID> (replace <PID> with the process ID from the lsof result). Alternatively, change Oozie's port by modifying the oozie.http.port property in oozie-site.xml.

  • Ensure Java 8 is Properly Configured
    Oozie requires Java 8 (which is compatible with High Sierra). First, confirm your Java version:

    java -version
    

    Then, make sure OOZIE_JAVA_HOME is set correctly in $OOZIE_HOME/conf/oozie-env.sh. For example:

    export OOZIE_JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_202.jdk/Contents/Home
    

    Replace the path with your actual Java 8 installation directory.

  • Initialize the Oozie Database
    If you skipped this step during setup, Oozie won't start. Run this command to set up the default embedded Derby database:

    ooziedb create -run
    

    This creates all necessary tables and initializes the database for Oozie.

  • Check Mac Firewall Settings
    The built-in Mac firewall might be blocking incoming connections to port 12000. Temporarily disable it (System Preferences > Security & Privacy > Firewall) to test. If that fixes the issue, add an exception for Oozie or allow incoming connections to port 12000.

After trying these steps, restart Oozie with oozied.sh start and test the connection with oozie admin -status.

内容的提问来源于stack exchange,提问作者Andrew Kirna

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.25 06:54:24