简体   繁体   中英

Opening port 8021 in Red Hat Linux

I am trying to load data into hive server through a java client, but its throwing exception while loading the data, on checking the hive log I found out the issue is arising because port 8021 is not open. Is there anyway to open the 8021 port, I have the root permission for the system. Thanks

You might need to use iptables command as follows:

iptables -I INPUT -p tcp -m tcp --dport 8021 -j ACCEPT

To save the rule, you also need to issue this:

sudo service iptables save

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM