HUE-9074 [core] Updated hue commands

Review Request #14464 — Created Nov. 8, 2019 and updated

cconner
hue
master
HUE-9074
hue
enricoberti, jgauthier, johan, ranade, romain, roohi, weixia, yingc
commit 18f04ca45391638e0b0a895d5faace41eb579ebb
Author: cconner <cconner@cloudera.com>
Date:   Fri Nov 8 12:04:05 2019 -0500

    HUE-9074 [core] Updated hue commands

:000000 100644 0000000000 bfdc213234 A	desktop/core/src/desktop/lib/cm_functions.py
:000000 100644 0000000000 ab64e74b0f A	desktop/core/src/desktop/lib/hue_curl.py
:100644 100644 901b518327 c2bee4b2ce M	desktop/core/src/desktop/manage_entry.py
:000000 100644 0000000000 ad07e93f19 A	desktop/core/src/desktop/management/commands/backend_test_curl.py
:000000 100644 0000000000 c3747738de A	desktop/core/src/desktop/management/commands/promote_to_superuser.py
:000000 100644 0000000000 268ac93c48 A	desktop/core/src/desktop/management/commands/run_hive_impala_query.py

Confirmed the command handles Oracle backend well.
Confirmed CM can restart Hue still.
Confirmed commands can run without running Hue.
Confirmed new commands work.

  • 0
  • 0
  • 6
  • 0
  • 6
Description From Last Updated
romain
  1. Nice!

    1 LDAP test command still works?

    2 Should we have a bit of documentation (e.g. some examples) in the docs?

    https://docs.gethue.com/administrator/administration/operations/
    https://github.com/cloudera/hue/blob/master/docs/docs-site/content/administrator/administration/operations.md

  2. desktop/core/src/desktop/lib/cm_functions.py (Diff revision 1)
     
     
     
     
     

    nit:

    return cm_agent_pid != ''

  3. desktop/core/src/desktop/manage_entry.py (Diff revision 1)
     
     
     
     
     
     
     
     

    nit:

    cm_run_command = "cloudera" in os.environ.get('HUE_CONF_DIR', {})

  4. nit: extra space before 'Running'

  5. py3:

    except AttributeError, e:

    -->

    except AttributeError as e:

  6. py3: print with parenthesis

    --> print()

  7. 
      
cconner
Review request changed
Loading...