README.rst 4.5 KB

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