Advertisement
Guest User

Untitled

a guest
Apr 25th, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. diff --git a/hibernate-search/hsearch-elasticsearch-wikipedia/README.md b/hibernate-search/hsearch-elasticsearch-wikipedia/README.md
  2. index f75243a..6014541 100644
  3. --- a/hibernate-search/hsearch-elasticsearch-wikipedia/README.md
  4. +++ b/hibernate-search/hsearch-elasticsearch-wikipedia/README.md
  5. @@ -9,10 +9,24 @@ Create a database and user:
  6. ```
  7. # From a shell
  8. sudo -i -u postgres
  9. -createuser -U postgres hibernate_demo # When prompted, use "hibernate_demo" as a password
  10. +createuser -U postgres -P hibernate_demo # When prompted, use "hibernate_demo" as a password
  11. createdb -U postgres -O hibernate_demo hsearch_es_wikipedia
  12. ```
  13.  
  14. +You need to enable the `md5` authentication scheme for the local network connection. So, if you
  15. +just installed PostgreSQL, you should make your `/var/lib/pgsql/data/pg_hba.conf` file look like:
  16. +```
  17. +local all all peer
  18. +host all all 127.0.0.1/32 md5
  19. +host all all ::1/128 md5
  20. +```
  21. +(just change `ident` to `md5` in the existing lines)
  22. +
  23. +Don't forget to reload your PostgreSQL server after this change:
  24. +```
  25. +sudo systemctl reload postgresql
  26. +```
  27. +
  28. ## Data
  29.  
  30. You can try a fully automated initialization using this command:
  31. @@ -21,7 +35,10 @@ You can try a fully automated initialization using this command:
  32. ./src/init/init
  33. ```
  34.  
  35. -If this succeeds, you're all set, just run the project.
  36. +The script will ask for a password: just use `hibernate_demo`.
  37. +
  38. +If this succeeds, you're all set, you can go to the next step.
  39. +
  40. Otherwise, Wikipedia's dumps page structure probably changed, but you can proceed as explained below.
  41.  
  42. Retrieve a dataset of current pages (one of those described as "All pages, current versions only.")
  43. @@ -42,7 +59,6 @@ Initialize the database using the provided script:
  44. ```
  45.  
  46. The script will ask for a password: just use `hibernate_demo`.
  47. -Note that md5 mode authentication must be enabled in postgresql for this script to work.
  48.  
  49. # Running the project
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement