use HTTP instead of http for kerberos principle of HTTP service. Hadoop will automatically change http to uppercase and cause authentication error. It only occurs for HTTP service.