README.rst 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. Welcome to the repository for Hue
  2. =================================
  3. Hue is both a Web UI for Hadoop and a framework to create interactive Web
  4. applications. It features:
  5. * File Browser for accessing HDFS
  6. * Beeswax application for executing Hive queries
  7. * Impala App for executing Cloudera Impala queries
  8. * Oozie App for submitting and monitoring workflows, coordinators and bundles
  9. * Pig Editor for submitting Pig scripts
  10. * HBase Browser for exploring and modifying HBase tables and data
  11. * Table Browser for accessing Hive metadata and HCatalog
  12. * Search app for querying Solr and Solr Cloud
  13. * Job Browser for accessing MapReduce jobs (MR1/MR2-YARN)
  14. * Job Designer for creating MapReduce/Streaming/Java jobs
  15. * A Sqoop 2 editor and dashboard
  16. * A ZooKeeper browser and editor
  17. On top of that, a SDK is available for creating new apps integrated with Hadoop.
  18. More user and developer documentation is available at http://gethue.com.
  19. Getting Started
  20. ===============
  21. To build and get the core server running::
  22. $ git clone http://github.com/cloudera/hue.git
  23. $ cd hue
  24. $ make apps
  25. $ build/env/bin/hue runserver
  26. Now Hue should be running on http://localhost:8000 !
  27. The configuration in development mode is ``desktop/conf/pseudo-distributed.ini``.
  28. Note: to start the production server (but lose the automatic reloading after source modification)::
  29. $ build/env/bin/supervisor
  30. To run the tests::
  31. $ build/env/bin/hue test all
  32. $ build/env/bin/hue test specific filebrowser
  33. $ build/env/bin/hue test specific jobbrowser.tests:test_get_path
  34. Development Prerequisites
  35. ===========================
  36. You'll need these library development packages and tools installed on
  37. your system:
  38. Ubuntu:
  39. * ant
  40. * gcc
  41. * g++
  42. * libkrb5-dev
  43. * libmysqlclient-dev
  44. * libssl-dev
  45. * libsasl2-dev
  46. * libsasl2-modules-gssapi-mit
  47. * libsqlite3-dev
  48. * libtidy-0.99-0 (for unit tests only)
  49. * libxml2-dev
  50. * libxslt-dev
  51. * mvn (from ``maven2`` package or tarball)
  52. * openldap-dev / libldap2-dev
  53. * python-dev
  54. * python-simplejson
  55. * python-setuptools
  56. CentOS:
  57. * ant
  58. * asciidoc
  59. * cyrus-sasl-devel
  60. * cyrus-sasl-gssapi
  61. * gcc
  62. * gcc-c++
  63. * krb5-devel
  64. * libtidy (for unit tests only)
  65. * libxml2-devel
  66. * libxslt-devel
  67. * mvn (from ``maven2`` package or tarball)
  68. * mysql
  69. * mysql-devel
  70. * openldap-devel
  71. * python-devel
  72. * python-simplejson
  73. * sqlite-devel
  74. MacOS (mac port):
  75. * liblxml
  76. * libxml2
  77. * libxslt
  78. * mysql5-devel
  79. * simplejson (easy_install)
  80. * sqlite3
  81. File Layout
  82. ===========
  83. The Hue "framework" is in ``desktop``. ``/core/`` contains the Web components and
  84. ``desktop/libs/`` the API for talking to Hadoop.
  85. The installable apps live in ``apps/``. Please place third-party dependencies in the app's ext-py/
  86. directory.
  87. The typical directory structure for inside an application includes:
  88. src/
  89. for Python/Django code
  90. models.py
  91. urls.py
  92. views.py
  93. forms.py
  94. settings.py
  95. conf/
  96. for configuration (``.ini``) files to be installed
  97. static/
  98. for static HTML/js resources and help doc
  99. templates/
  100. for data to be put through a template engine
  101. locales/
  102. for localizations in multiple languages
  103. For the URLs within your application, you should make your own ``urls.py``
  104. which will be automatically rooted at ``/yourappname/`` in the global
  105. namespace. See ``apps/about/src/about/urls.py`` for an example.
  106. Main Stack
  107. ==========
  108. * Python 2.6 - 2.7
  109. * Django 1.4.5 https://docs.djangoproject.com/en/1.4/
  110. * Mako
  111. * jQuery
  112. * Bootstrap
  113. Community
  114. =========
  115. * User group: http://groups.google.com/a/cloudera.org/group/hue-user
  116. * Jira: https://issues.cloudera.org/browse/HUE
  117. * Reviews: https://review.cloudera.org/dashboard/?view=to-group&group=hue (repo 'hue-rw')
  118. License
  119. =======
  120. Apache License, Version 2.0
  121. http://www.apache.org/licenses/LICENSE-2.0