Member since
04-11-2018
55
Posts
1
Kudos Received
0
Solutions
01-25-2019
07:49 AM
Can anyone please look at my last post (configs) and let me know if I missed anything else? Thanks. I need to stop using both of my accounts.
... View more
12-17-2018
11:15 AM
After making the changes, I see this in the log: 2018/12/17 15:47:50 [warn] 20199#20199: could not build optimal proxy_headers_hash, you should increase either proxy_headers_hash_max_size: 512 or proxy_headers_hash_bucket_size: 64; ignoring proxy_headers_hash_bucket_size 2018/12/17 17:49:19 [crit] 20348#20348: *16 SSL_do_handshake() failed (SSL: error:1417D0A0:SSL routines:tls_process_client_hello:length too short) while SSL handshaking, client: <CLIENT_IP>, server: 0.0.0.0:443 Config file now: server { server_name _; charset utf-8; #or if running hue on https:// listen 8001 ssl; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_certificate /ssl/grav.crt; ssl_certificate_key /ssl/grav.key; ssl_prefer_server_ciphers on; ssl_session_timeout 1d; ssl_session_cache shared:SSL:50m; ssl_session_tickets off; client_max_body_size 0; location / { proxy_pass http://hue; proxy_set_header Host $http_host; proxy_set_header X-Forwarded-For $remote_addr; } location /static/ { # Uncomment to expose the static file directories. #autoindex on; # Or if on a parcel install: proxy_pass http://hue; proxy_set_header Host $http_host; proxy_set_header X-Forwarded-For $remote_addr; alias /opt/cloudera/parcels/CDH/lib/hue/build/static/; expires 30d; add_header Cache-Control public; } } upstream hue { ip_hash; # List all the Hue instances here for high availability. server <HUE_NODE_1>:8888 max_fails=3; server <HUE_NODE_2>:8888 max_fails=3; }
... View more
12-17-2018
07:19 AM
Changed what you requested. Did not help. 400 Bad Request The plain HTTP request was sent to HTTPS port nginx/1.14.2 On Inspection: :8001/favicon.ico:1 Failed to load resource: the server responded with a status of 400 (Bad Request) login:1 Failed to load resource: the server responded with a status of 400 (Bad Request) From logs: 2018/12/17 15:15:34 [error] 19342#19342: *99 connect() failed (111: Connection refused) while connecting to upstream, client: <My-client-ip>, server: _, request: "GET / HTTP/1.1", upstream: "http://<hue-node-ip>:8888/", host: "gravalytics.com:8001", referrer: "https://gravalytics.com/explore/home" 2018/12/17 15:47:50 [warn] 20199#20199: could not build optimal proxy_headers_hash, you should increase either proxy_headers_hash_max_size: 512 or proxy_headers_hash_bucket_size: 64; ignoring proxy_headers_hash_bucket_size
... View more
12-13-2018
11:17 AM
Also another thing to note. This config works for http (nginx) to http (hue), but fails for https (nginx) to http (hue).
... View more
12-13-2018
11:11 AM
Firewall rules are setup to allow traffic from nginx vm to cluster. Hue is running on that node and port.
... View more
12-11-2018
12:15 PM
Nginx log: 2018/12/11 19:44:51 [warn] 19347#19347: could not build optimal proxy_headers_hash, you should increase either proxy_headers_hash_max_size: 512 or proxy_headers_hash_bucket_size: 64; ignoring proxy_headers_hash_bucket_size 2018/12/11 19:51:44 [error] 19352#19352: *3 open() "/www/gravalytics/public/favicon.ico" failed (2: No such 2018/12/11 20:04:18 [error] 19352#19352: *14 connect() failed (111: Connection refused) while connecting to upstream, client: <client_ip>, server: gravalytics.com, request: "GET / HTTP/1.1", upstream: "http://<node1_ip>:8888/", host: "gravalytics.com:8001", referrer: "https://gravalytics.com/" 2018/12/11 20:04:18 [error] 19352#19352: *14 connect() failed (111: Connection refused) while connecting to upstream, client: <client_ip>, server: gravalytics.com, request: "GET /favicon.ico HTTP/1.1", upstream: "http://<node1_ip>:8888/favicon.ico", host: "gravalytics.com:8001", referrer: "https://gravalytics.com:8001/" There is no entry in the Hue instance log in /var/log/hue-httpd/ folder.
... View more
12-11-2018
08:50 AM
First of all this is a DEV server, just trying to figure out the configuration. From what I read, this should work, but it is not. I have a Nginx server running on SSL and trying to do a reverse proxy to a non-ssl cluster (5.15) running Hue. Why does this config not work? server { server_name myhostname.com; charset utf-8; listen 8001; ssl on; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_certificate /ssl/grav.crt; ssl_certificate_key /ssl/grav.key; client_max_body_size 0; location / { proxy_pass http://hue; proxy_set_header Host $http_host; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto https; } location /static/ { # Uncomment to expose the static file directories. #autoindex on; # Or if on a parcel install: proxy_pass http://hue; proxy_set_header Host $http_host; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-Proto https; #alias /opt/cloudera/parcels/CDH/lib/hue/build/static/; expires 30d; add_header Cache-Control public; } } upstream hue { ip_hash; # List all the Hue instances here for high availability. server node1_IP:8888 max_fails=3; server node2_IP:8888 max_fails=3; } Get error message - login:1 Failed to load resource: the server responded with a status of 404 (Not Found)
... View more
Labels:
- Labels:
-
Cloudera Hue
11-06-2018
07:01 AM
I am not using Kerberos on this cluster, it is a CDH 5.15 install.
... View more
11-05-2018
01:15 PM
Did not work. [centos@ip-172-31-81-167 ~]$ curl -i --retry 5 -s -L -k --negotiate -u : http://ip-172-31-82-140.ec2.internal:8983/solr curl: option --negotiate: the installed libcurl version doesn't support this curl: try 'curl --help' or 'curl --manual' for more information
... View more