annotate DVN-web/installer/dvninstall/doc/guides/_sources/dataverse-installer-main.txt @ 6:1b2188262ae9

adding the installer.
author "jurzua <jurzua@mpiwg-berlin.mpg.de>"
date Wed, 13 May 2015 11:50:21 +0200
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1 ====================================
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
2 Installers Guide
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
3 ====================================
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
4
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
5 .. _introduction:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
6
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
7 **Introduction**
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
8
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
9 This is our "new and improved" installation guide, it was first
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
10 released with the Dataverse Network application versions 2.2.4, when we
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
11 introduced the new, automated and much simplified installation process.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
12 As of February 2012, it has been updated to reflect the changes made in
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
13 the newly released version 3.0 of the software. (Our existing users will
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
14 notice however, that the changes in the installation process have been
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
15 fairly minimal).
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
16
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
17 The guide is intended for anyone who needs to install the DVN app,
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
18 developers and Dataverse Network administrators alike.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
19
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
20 The top-down organization of the chapters and sections is that of
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
21 increasing complexity. First a very basic, simple installation scenario
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
22 is presented. The instructions are straightforward and only the required
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
23 components are discussed. This use case will in fact be sufficient for
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
24 most DVN developers and many Dataverse Network administrators. Chances
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
25 are you are one of such users, so if brave by nature, you may stop
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
26 reading this section and go straight to the :ref:`“Quick Install” <quick-install>` chapter.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
27
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
28 The “basic” installation process described in the first chapter is
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
29 fully automated, everything is performed by a single interactive script.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
30 This process has its limitations. It will likely work only on the
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
31 supported platforms. Optional components need to be configured outside
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
32 of the Installer (these are described in the "Optional Components"
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
33 section).
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
34
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
35 For an advanced user, we provide the detailed explanations of all the
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
36 steps performed by the Installer. This way he or she can experiment with
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
37 individual configuration options, having maximum flexibility and control
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
38 over the process. Yet we tried to organize the advanced information in
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
39 such a way that those who only need the most basic instructions would
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
40 not have to read through it unnecessarily. Instead we provide them with
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
41 an easy way to get a bare-bones configuration of the DVN up and running.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
42
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
43 If you are interested in practicing a DVN installation in a Vagrant
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
44 environment you can later throw away, please follow the instructions at
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
45 https://github.com/dvn/dvn-install-demo to spin up a Linux virtual
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
46 machine on your laptop with ``vagrant up``. When you are finished with
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
47 this temporary DVN installation, you can delete the virtual machine with
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
48 ``vagrant destroy``.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
49
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
50 If you encounter any problems during installation, please contact the
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
51 development team
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
52 at `support@thedata.org <mailto:support@thedata.org>`__
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
53 or our `Dataverse Users
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
54 Community <https://groups.google.com/forum/?fromgroups#!forum/dataverse-community>`__.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
55
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
56 .. _quick-install:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
57
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
58 Quick Install
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
59 ++++++++++++++++++++++
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
60
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
61 For an experienced and/or rather bold user, this is a 1
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
62 paragraph version of the installation instructions:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
63
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
64 This should work on RedHat and its derivatives, and MacOS X. If this
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
65 does not describe your case, you will very likely have to install and
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
66 configure at least some of the components manually. Meaning, you may
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
67 consider reading through the chapters that follow! Still here? Great.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
68 Prerequisites: Sun/Oracle Java JDK 1.6\_31+ and a “virgin” installation
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
69 of Glassfish v3.1.2; PostgreSQL v8.3+, configured to listen to network
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
70 connections and support password authentication on the localhost
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
71 interface; you may need R as well. See the corresponding sections under
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
72 “2. Prerequisites”, if necessary. Download the installer package from
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
73 SourceForge:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
74
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
75 `http://sourceforge.net/projects/dvn/files/dvn <http://sourceforge.net/projects/dvn/files/dvn>`__
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
76
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
77 Choose the latest version and download the dvninstall zip file.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
78
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
79 Unzip the package in a temp location of your choice (this will create
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
80 the directory ``dvninstall``). Run the installer, as root:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
81
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
82 ``cd dvninstall``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
83 ./ ``install``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
84
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
85 Follow the installation prompts. If it all works as it should, you
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
86 will have a working DVN instance running in about a minute from now.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
87
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
88 Has it worked? Awesome! Now you may read the rest of the guide
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
89 chapters at your own leisurely pace, to see if you need any of the
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
90 optional components described there. And/or if you want to understand
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
91 what exactly has just been done to your system.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
92
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
93 SYSTEM REQUIREMENTS
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
94 ++++++++++++++++++++++++++++++++++
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
95
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
96 Or rather, recommendations. The closer your configuration is to what’s
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
97 outlined below, the easier it will be for the DVN team to provide
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
98 support and answer your questions.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
99
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
100 - Operating system - The production version of the Dataverse Network at
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
101 IQSS (dvn.iq.harvard.edu) runs on RedHat Linux 5. Most of the DVN
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
102 development is currently done on MacOS X. Because of our experience
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
103 with RedHat and MacOS X these are the recommended platforms. You
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
104 should be able to deploy the application .ear file on any other
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
105 platform that supports Java. However, the automated installer we
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
106 provide will likely work on RedHat and MacOS only. Some information
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
107 provided in this guide is specific to these 2 operating systems. (Any
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
108 OS-specific instructions/examples will be clearly marked, for
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
109 example:\ ``[MacOS-specific:]``)
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
110
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
111 - CPU - The production IQSS Dataverse Network runs on generic,
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
112 multi-core 64-bit processors.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
113
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
114 - Memory - The application servers currently in production at the IQSS
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
115 have 64 GB of memory each. Development and testing systems require a
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
116 minimum of 2 gigabyte of memory.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
117
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
118 - Disk space - How much disk space is required depends on the amount of
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
119 data that you expect to serve. The IQSS Dataverse Network file system
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
120 is a standalone NetApp with 2 TB volume dedicated to the DVN data.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
121
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
122 - Multiple servers – All the DVN components can run on the same server.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
123 On a busy, hard-working production network the load can be split
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
124 across multiple servers. The 3 main components, the application
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
125 server (Glassfish), the database (Postgres) and R can each run on its
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
126 own host. Furthermore, multiple application servers sharing the same
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
127 database and R server(s) can be set up behind a load balancer.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
128 Developers would normally run Glassfish and Postgres on their
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
129 workstations locally and use a shared R server.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
130
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
131 - If it actually becomes a practical necessity to bring up more servers
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
132 to handle your production load, there are no universal instructions
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
133 on how to best spread it across extra CPUs. It will depend on the
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
134 specifics of your site, the nature of the data you serve and the
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
135 needs of your users, whether you’ll benefit most from dedicating
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
136 another server to run the database, or to serve R requests. Please
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
137 see the discussion in the corresponding sections of the Prerequisites
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
138 chapter.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
139
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
140 .. _prerequisites:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
141
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
142 PREREQUISITES
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
143 ++++++++++++++++++++++++++
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
144
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
145 In this chapter, an emphasis is made on clearly identifying those
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
146 components that are absolutely required for every installation and
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
147 marking any advanced, optional instructions as such.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
148
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
149 Glassfish
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
150 =======================
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
151
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
152 Version 3.1.2 is required.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
153
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
154 Make sure you have **Sun/Oracle**\ **Java JDK version 1.6, build 31**
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
155 or newer\. It is available from
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
156 `http://www.oracle.com/technetwork/java/javase/downloads/index.html <http://www.oracle.com/technetwork/java/javase/downloads/index.html>`__.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
157
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
158
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
159 **[note for developers:]**
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
160
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
161 If you are doing this installation as part of your DVN software
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
162 development setup: The version of NetBeans currently in use by the DVN
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
163 team is 7.0.1, and it is recommended that you use this same version if
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
164 you want to participate in the development. As of writing of this
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
165 manual, NetBeans 7.0.1 installer bundle comes with an older version of
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
166 Glassfish. So you will have to install Glassfish version 3.1.2
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
167 separately, and then select it as the default server for your NetBeans
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
168 project.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
169
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
170 **[/note for developers]**
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
171
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
172 We **strongly** recommend that you install GlassFish Server 3.1.2,
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
173 Open Source Edition, **Full Platform**. You are very likely to run into
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
174 installation issues if you attempt to run the installer and get the
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
175 application to work with a different version! Simply transitioning from
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
176 3.1.1 to 3.1.2 turned out to be a surprisingly complex undertaking,
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
177 hence this recommendation to all other installers and developers to stay
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
178 with the same version.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
179
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
180 It can be obtained from
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
181
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
182 `http://glassfish.java.net/downloads/3.1.2-final.html <http://glassfish.java.net/downloads/3.1.2-final.html>`__
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
183
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
184 The page contains a link to the installation instructions. However,
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
185 the process is completely straightforward. You are given 2 options for
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
186 the format of the installer package. We recommend that you choose to
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
187 download it as a shell archive; you will need to change its executable
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
188 permission, with **chmod +x**, and then run it, as root:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
189
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
190 ./**installer-filename.sh**
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
191
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
192 [**Important:]**
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
193
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
194 Leave the admin password fields blank. This is not a security risk,
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
195 since out of the box, Glassfish will only be accepting admin connections
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
196 on the localhost interface. Choosing password at this stage however will
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
197 complicate the installation process unnecessarily\ **.**\ If this is a
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
198 developers installation, you can probably keep this configuration
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
199 unchanged (admin on localhost only). If you need to be able to connect
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
200 to the admin console remotely, please see the note in the Appendix
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
201 section of the manual.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
202
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
203 **[/Important]**
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
204
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
205 | **[Advanced:]**
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
206 | **[Unix-specific:`]**
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
207
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
208 The installer shell script will normally attempt to run in a graphic
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
209 mode. If you are installing this on a remote Unix server, this will
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
210 require X Windows support on your local workstation. If for whatever
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
211 reason it's not available, you have an option of running it in a *silent
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
212 mode* - check the download page, above, for more information.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
213
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
214 | **[/Unix-specific]**
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
215 | **[/Advanced]**
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
216
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
217 .. _postgresql:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
218
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
219 PostgreSQL
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
220 =======================
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
221
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
222 | **Version 8.3 or higher is required.**
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
223 | Installation instructions specific to RedHat Linux and MacOS X are
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
224 | provided below.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
225 | Once the database server is installed, you'll need to configure access
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
226 | control to suit your installation.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
227 | Note that any modifications to the configuration files above require you to restart Postgres:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
228 | ``service postgresql restart`` (RedHat)
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
229
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
230 | or
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
231 | "Restart Server" under Applications -> PostgreSQL (MacOS X)
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
232
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
233 By default, most Postgres distributions are configured to listen to network connections on the localhost interface only; and to only support ident for authentication. (The MacOS installer may ask you if network connections should be allowed - answer "yes"). At a minimum, if GlassFish is running on the same host, it will also need to allow password authentication on localhost. So you will need to modify the "``host all all 127.0.0.1``\ " line in your ``/var/lib/pgsq1/data/pg_hba.conf`` so that it looks like this:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
234
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
235 | ``host all all 127.0.0.1/32 password``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
236
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
237 Also, the installer script needs to have direct access to the local PostgresQL server via Unix domain sockets. So this needs to be set to either "trust" or "ident". I.e., your **pg\_hba.conf** must contain either of the 2 lines below:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
238
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
239 | **local all all ident sameuser**
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
240 | or
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
241 | **local all all trust**
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
242
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
243 ("ident" is the default setting; but if it has been changed to
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
244 "password" or "md5", etc. on your system, Postgres will keep prompting
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
245 you for the master password throughout the installation)
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
246
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
247 **[optional:]**
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
248
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
249 If GlassFish will be accessing the database remotely, add or modify the following line in your ``<POSTGRES DIR>/data/postgresql.conf``:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
250
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
251 | ``listen_addresses='*'``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
252
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
253 to enable network connections on all interfaces; and add the following
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
254 line to ``pg_hba.conf``:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
255
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
256 | host all all ``[ADDRESS] 255.255.255.255 password``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
257
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
258 | where ``[ADDRESS]`` is the numeric IP address of the GlassFish server.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
259 | Using the subnet notation above you can enable authorization for multiple hosts on | your network. For example,
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
260
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
261 | ``host all all 140.247.115.0 255.255.255.0 password``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
262
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
263 | will permit password-authenticated connections from all hosts on the ``140.247.115.*`` subnet.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
264 | **[/optional:]**
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
265
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
266 |
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
267 | **[RedHat-specific:]**
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
268 | **[Advanced:]**
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
269
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
270 Please note that the instructions below are meant for users who have some experience with basic RedHat admin tasks. You should be safe to proceed if an instruction such as “uninstall the postgres rpms” makes sense to you immediately. I.e., if you already know how to install or uninstall an rpm package. Otherwise we recommend that you contact your systems administrator.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
271
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
272 For RedHat (and relatives), version 8.4 is now part of the distribution. As of RedHat 5, the default ``postgresql`` rpm is still version 8.1. So you may have to un-install the ``postgresql`` rpms, then get the ones for version 8.4:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
273
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
274 | ``yum install postgresql84 postgresql84-server``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
275
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
276 Before you start the server for the first time with
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
277
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
278 | ``service postgresql start``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
279
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
280 You will need to populate the initial database with
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
281
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
282
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
283 | ``service postgresql initdb``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
284
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
285
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
286 | **[/advanced]**
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
287 | **[/RedHat-specific]**
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
288
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
289
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
290 **[MacOS-specific:]**
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
291
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
292
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
293 Postgres Project provides a one click installer for Mac OS X 10.4 and
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
294 above at
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
295 `http://www.postgresql.org/download/macosx <http://www.postgresql.org/download/macosx>`__.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
296 Fink and MacPorts packages are also available.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
297
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
298
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
299 **[/MacOS-specific]`**
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
300
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
301
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
302 | **[advanced:]**
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
303 | **[optional:]**
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
304
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
305 See the section :ref:`PostgresQL setup <postgresql-setup>` in the Appendix for the description of the steps that the automated installer takes to set up PostgresQL for use with the DVN.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
306
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
307 | **[/optional]**
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
308 | **[/advanced]**
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
309
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
310 .. _r-and-rserve:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
311
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
312 R and RServe
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
313 =======================
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
314
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
315 Strictly speaking, R is an optional component. You can bring up a
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
316 running DVN instance without it. The automated installer will allow such
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
317 an installation, with a warning. Users of this Dataverse Network will be
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
318 able to upload and share some data. Only the advanced modes of serving
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
319 quantitative data to the users require R ``[style?]``. Please consult
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
320 the :ref:`"Do you need R?" <do-you-need-r>` section in the Appendix for an extended discussion of this.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
321
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
322
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
323 | **Installation instructions:**
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
324
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
325 Install the latest version of R from your favorite CRAN mirror (refer to `http://cran.r-project.org/ <http://cran.r-project.org/>`__ for more information). Depending on your OS distribution, this may be as simple as typing
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
326
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
327 | **[RedHat/Linux-specific:]**
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
328
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
329 ``yum install R R-devel``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
330
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
331 (for example, the above line will work in CentOS out of the box; in RedHat, you will have to add support for EPEL repository -- see
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
332 `http://fedoraproject.org/wiki/EPEL <http://fedoraproject.org/wiki/EPEL>`__
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
333 -- then run the ``yum install`` command)
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
334
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
335 | **[/RedHat/Linux-specific]**
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
336
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
337 Please make sure to install the "devel" package too! you will need it
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
338 to build the extra R modules.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
339
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
340 Once you have R installed, download the package ``dvnextra.tar`` from this location:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
341
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
342 `http://dvn.iq.harvard.edu/dist/R/dvnextra.tar <http://dvn.iq.harvard.edu/dist/R/dvnextra.tar>`__
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
343
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
344 Unpack the archive:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
345
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
346 ``tar xvf dvnextra.tar``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
347
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
348 then run the supplied installation shell script as root:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
349
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
350 | ``cd dvnextra``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
351 | ``./installModules.sh``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
352
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
353 This will install a number of R modules needed by the DVN to run statistics and analysis, some from CRAN and some supplied in the bundle; it will also configure Rserve to run locally on your system and install some startup files that the DVN will need.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
354
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
355 **Please note that the DVN application requires specific versions of the 3rd-party R packages. For example, if you obtain and install the version of Zelig package currently available from CRAN, it will not work with the application. This is why we distribute the sources of the correct versions in this tar package.**
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
356
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
357
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
358 | **[advanced:]**
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
359 | We haven’t had much experience with R on any platforms other than RedHat-and-the-like. Our developers use MacOS X, but point their DVN instances to a shared server running Rserve under RedHat.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
360
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
361 The R project ports their distribution to a wide range of platforms. However, the installer shell script above will only run on Unix; and is not really guaranteed to work on anything other than RedHat. If you have some experience with either R or system administration, you should be able to use the script as a guide to re-create the configuration steps on any other platform quite easily. You will, however, be entirely on your own while embarking on that adventure.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
362 **[/advanced]**
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
363
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
364
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
365
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
366 System Configuration
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
367 ================================
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
368
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
369 **[Advanced/optional:]**
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
370
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
371 Many modern OS distributions come pre-configured so that all the
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
372 network ports are firewalled off by default.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
373
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
374 Depending on the configuration of your server, you may need to open some
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
375 of the following ports.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
376
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
377 On a developers personal workstation, the user would normally access his
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
378 or her DVN instance on the localhost interface. So no open ports are
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
379 required unless you want to give access to your DVN to another
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
380 user/developer.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
381
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
382 When running a DVN that is meant to be accessible by network users: At a
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
383 minimum, if all the components are running on the same server, the HTTP
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
384 port 80 needs to be open. You may also want to open TCP 443, to be able
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
385 to access Glassfish admin console remotely.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
386
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
387 If the DVN is running its own HANDLE.NET server (see Chapter 4.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
388 "Optional Components"), the TCP port 8000 and TCP/UDP ports 2641 are
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
389 also needed.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
390
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
391 If the DVN application needs to talk to PostgreSQL and/or Rserve running
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
392 on remote hosts, the TCP ports 5432 and 6311, respectively, need to be
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
393 open there.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
394
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
395 **[/Advanced/optional]**
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
396
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
397
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
398
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
399 RUNNING THE INSTALLER
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
400 +++++++++++++++++++++++++++++++++++++++++
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
401
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
402 Once the :ref:`Prerequisites <prerequisites>` have been take care of, the DVN application can be installed.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
403
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
404 The installer package can be downloaded from our repository on SourceForge at
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
405
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
406 `http://sourceforge.net/projects/dvn/files/dvn/3.0/dvninstall\_v3\_0.zip <http://sourceforge.net/projects/dvn/files/dvn/3.0/dvninstall_v3_0.zip>`_
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
407
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
408 | Unzip the package in a temp location of your choice (this will create the directory | ``dvninstall``). Run the installer, as root:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
409 | ``cd dvninstall``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
410 | ``./install``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
411
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
412 Follow the installation prompts. The installer will first verify the contents of the package and check if the required components
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
413 (in :ref:`Prerequisites <prerequisites>`) are present on the system. Then it will lead you through the application setup.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
414
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
415 | **[Advanced:]**
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
416
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
417 The limitations of the installer package:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
418
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
419 Some extra configuration steps will be required if the PostgreSQL database is being set up on a remote server.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
420
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
421 It will most likely only work on the supported platforms, RedHat and Mac OS X.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
422
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
423 It is only guaranteed to work on a fresh Glassfish installation. If you already have more than one Glassfish domains created and/or have applications other than the DVN running under Glassfish, please consult the :ref:`"What does the Installer do?" <what-does-the-intstaller-do>` section.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
424
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
425 It does not install any of the optional components (:ref:`see Chapter 4<optional-components>`.)
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
426
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
427 For the detailed explanation of the tasks performed by the Installer, see the :ref:`"What does the Installer do?" <what-does-the-intstaller-do>` section.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
428
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
429 | **[/Advanced]**
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
430
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
431 .. _optional-components:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
432
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
433 Optional Components
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
434 ++++++++++++++++++++++++++
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
435
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
436 ``[The sections on ImageMagick, Google Analytics and Captcha have been rewritten and, hopefully, made less confusing. The Handles instructions have also been modified, but I would like to work on it some more. Namely I'd like to read their own technical manual, and see if we should provide our own version of installation instructions, similarly to what we do with some other packages; we've heard complaints from users about their manual not being very easy to follow]``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
437
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
438 reCAPTCHA bot blocker
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
439 =================================
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
440
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
441 We found that our “email us” feature can be abused to send spam
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
442 messages. You can choose to use the reCAPTCHA filter to help prevent
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
443 this. Configure the filter as follows:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
444
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
445 #. | Go to reCAPTCHA web site at
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
446 | `http://recaptcha.net/ <http://recaptcha.net/>`_
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
447 | and sign up for an account.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
448 | Register your website domain to acquire a public/private CAPTCHA key pair.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
449 | Record this information in a secure location.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
450 #. Insert the the public/private key pair and domain for your reCAPTCHA
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
451 account into the ``captcha`` table of the DVN PostgreSQL database.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
452 Use ``psql``, ``pgadmin`` or any other database utility; the SQL
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
453 query will look like this:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
454 ``INSERT INTO captcha (publickey, domainname, privatekey) VALUES ('sample', 'sample.edu', 'sample')``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
455 #. Verify that the Report Issue page is now showing the reCAPTCHA
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
456 challenge.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
457
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
458 Google Analytics
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
459 ================================
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
460
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
461 Network Admins can use the Google Analytics tools to view Dataverse Network website usage statistics.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
462
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
463 Note: It takes about 24 hours for Google Analytics to start monitoring
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
464 your website after the registration.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
465
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
466 |
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
467 | To enable the use of Google Analytics:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
468
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
469 #. Go to the Google Analytics homepage at
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
470 `http://www.google.com/analytics/indexu.html <http://www.google.com/analytics/indexu.html>`__.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
471 #. Set up a Google Analytics account and obtain a tracking code for your Dataverse Network installation.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
472 #. Use the Google Analytics Help Center to find how to add the tracking code to the content you serve.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
473 #. Configure the DVN to use the tracking key (obtained in Step 2,
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
474 above), by setting | the ``dvn.googleanalytics.key`` JVM option in
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
475 Glassfish.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
476
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
477 This can be done by adding the following directly to the
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
478 ``domain.xml`` config file (for example: ``/usr/local/glassfish/domains/domain1/confi/domain.xml``):
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
479 ``<jvm-options>-Ddvn.googleanalytics.key=XX-YYY</jvm-options>`` (this will require Glassfish restart)
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
480
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
481 Or by using the Glassfish Admin Console configuration GUI. Consult the “Glassfish Configuration” section in the Appendix.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
482
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
483 Once installed and activated, the usage statistics can be accessed from
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
484 the Network Options of the DVN.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
485
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
486 ImageMagick
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
487 =======================
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
488
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
489 When image files are ingested into a DVN, the application
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
490 automatically creates small "thumbnail" versions to display on the
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
491 Files View page. These thumbnails are generated once, then cached for
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
492 future use.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
493
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
494 Normally, the standard Java image manipulation libraries are used to
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
495 do the scaling. If you have studies with large numbers of large
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
496 images, generating the thumbnails may become a time-consuming task. If
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
497 you notice that the Files view takes a long time to load for the first
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
498 time because of the images, it is possible | to improve the
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
499 performance by installing the ``ImageMagick`` package. If it is
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
500 installed, the application will automatically use its
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
501 ``/usr/bin/convert`` utility to do the resizing, which appears to be
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
502 significantly faster than the Java code.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
503
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
504 ``ImageMagick`` is available for, or even comes with most of the popular OS distributions.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
505
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
506
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
507 | **<RedHat-Specific:>**
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
508
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
509 It is part of the full RedHat Linux distribution, although it is not
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
510 included in the default "server" configuration. It can be installed on a
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
511 RedHat server with the ``yum install ImageMagick`` command.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
512
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
513 **</RedHat-Specific>**
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
514
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
515 Handle System
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
516 ===========================
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
517
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
518 DVN administrators may choose to set up a `HANDLE.NET <http://www.handle.net/>`_ server to issue and register persistent, global identifiers for their studies. The DVN app can be modified to support other naming services, but as of now it comes
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
519 pre-configured to use Handles.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
520
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
521 To install and set up a local HANDLE.NET server:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
522
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
523 #. Download HANDLE.NET.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
524 Refer to the HANDLE.NET software download page at
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
525 `http://handle.net/download.html <http://handle.net/download.html>`__.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
526 #. Install the server on the same host as GlassFish.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
527 Complete the installation and setup process as described in the
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
528 HANDLE.NET Technical Manual:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
529 `http://www.handle.net/tech_manual/Handle_Technical_Manual.pdf <http://www.handle.net/tech_manual/Handle_Technical_Manual.pdf>`__.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
530 #. Accept the default settings during installation, **with one
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
531 exception:** do not encrypt private keys (this will make it easier to
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
532 manage the service). **Note** that this means answer 'n' when
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
533 prompted "Would you like to encrypt your private key?(y/n). [y]:" If
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
534 you accept the default 'y' and then hit return when prompted for
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
535 passphrase, this **will** encrypt the key, with a blank pass phrase!
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
536 #. During the installation you will be issued an "authority prefix".
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
537 This is an equivalent of a domain name. For example, the prefix
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
538 registered to the IQSS DVN is "1902.1". The IDs issued to IQSS
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
539 studies are of a form "1902.1/XXXX", where "XXXX" is some unique
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
540 identifier.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
541 #. Use ``psql`` or ``pgAdmin`` to execute the following SQL command:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
542 ``insert into handleprefix (prefix) values( '<your HANDLE.NET prefix>')``;
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
543 #. ``(Optional/advanced)`` If you are going to be assigning HANDLE.NET
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
544 ids in more than 1 authority prefix (to register studies harvested
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
545 from remote sources): Once you obtain the additional HANDLE.NET
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
546 prefixes, add each to the ``handleprefix`` table, using the SQL
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
547 command from step 3.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
548 #. Use ``psql`` or ``pgAdmin`` to execute the following SQL
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
549 command: ``update vdcnetwork set handleregistration=true, authority='<your HANDLE.NET prefix>';``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
550
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
551
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
552
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
553 Note: The DVN app comes bundled with the HANDLE.NET client libraries.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
554 You do not need to install these separately.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
555
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
556 Twitter setup
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
557 ======================
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
558
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
559 To set up the ability for users to enable Automatic Tweets in your
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
560 Dataverse Network:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
561
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
562 #. You will first need to tell twitter about you Dataverse Network Application. Go to `https://dev.twitter.com/apps <https://dev.twitter.com/apps>`_ and login (or create a new Twitter account).
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
563 #. Click "Create a new application".
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
564 #. Fill out all the fields. For callback URL, use your Dataverse Network Home Page URL.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
565 #. Once created, go to settings tab and set Application Type to "Read and Write". You can optionally also upload an Application
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
566 Icon and fill out Organization details (the end user will see these.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
567 #. Click details again. You will need both the Consumer key and secret as JVM Options. Add via Glassfish console:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
568 -Dtwitter4j.oauth.consumerKey=***
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
569
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
570
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
571 -Dtwitter4j.oauth.consumerSecret=***
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
572 #. Restart Glassfish.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
573 #. To verify that Automatic Tweets are now properly set up, you can go to the Dataverse Network Options page or any Dataverse Options page and see that their is a new option, "Enable Twitter".
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
574
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
575 Digital Object Identifiers
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
576 ==========================
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
577
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
578 Beginning with version 3.6, DVN will support the use of Digital Object Identifiers. Similar to the currently enabled Handle System, these DOIs will enable a permanent link to studies in a DVN network.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
579
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
580 DVN uses the EZID API (`www.n2t.net/ezid <http://www.n2t.net/ezid>`__) to facilitate the creation and maintenance of DOIs. Network administrators will have to arrange to get their own account with EZID in order to implement creation of DOIs. Once an account has been set up the following settings must be made in your DVN set-up:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
581
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
582 Update your database with the following query:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
583
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
584 Use ``psql`` or ``pgAdmin`` to execute the following SQL command:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
585 ``update vdcnetwork set handleregistration=true, protocol = 'doi', authority='<the namespace associated with your EZID account> where id = 0;``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
586
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
587 Add the following JVM options:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
588
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
589 ``-Ddoi.username=<username of your EZID account>``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
590
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
591 ``-Ddoi.password=<password of your EZID account>``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
592
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
593 ``-Ddoi.baseurlstring=https://ezid.cdlib.org``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
594
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
595 Note: The DVN app comes bundled with the EZID API client libraries. You do not need to install these separately.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
596
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
597 Appendix
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
598 +++++++++++++++++++++++
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
599
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
600 .. _do-you-need-r:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
601
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
602 Do you need R?
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
603 ==========================
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
604
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
605 This is a more detailed explanation of the statement made earlier in the "Prerequisites" section: "Only the advanced modes of serving quantitative data to the users require R." ``[style?]``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
606
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
607 In this context, by “quantitative data” we mean data sets for which
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
608 machine-readable, variable-level metadata has been defined in the DVN
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
609 database. “Subsettable data” is another frequently used term, in the
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
610 DVN parlance. The currently supported sources of subsettable data are
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
611 SPSS and STATA files, as well as row tabulated or CSV files, with
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
612 extra control cards defining the data structure and variable
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
613 metadata. (See full documentation in User Guide for :ref:`Finding and Using Data <finding-and-using-data>`
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
614
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
615 Once a “subsettable” data set is create, users can run online statistics and analysis on it. That’s where R is used. In our experience, most of the institutions who have installed the DVN did so primarily in order to share and process quantitative data. When this is the case, R must be considered a required component. But a DVN network built to serve a collection of strictly human-readable (text, image, etc.) data, R will not be necessary at all.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
616
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
617 .. _what-does-the-intstaller-do:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
618
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
619 What does the Installer do?
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
620 ===================================
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
621
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
622 The Installer script (chapters Quick Install, Running the Installer.) automates the following tasks:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
623
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
624 #. Checks the system for required components;
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
625 #. Prompts the user for the following information:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
626
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
627 a) Location of the Glassfish directory;
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
628
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
629 b) Access information (host, port, database name, username, password) for PostgresQL;
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
630
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
631 c) Access information (host, port, username, password) for Rserve;
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
632
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
633 #. Attempts to create the PostgreSQL user (role) and database, from :ref:`prerequisiste PostgreSQL setup step <postgresql>` above; see the :ref:`"PostgreSQL configuration"<postgresql-setup>` Appendix section for details.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
634 #. Using the :ref:`Glassfish configuration template (section the Appendix) <glassfish-configuration-template>` and the information collected in step 2.b. above, creates the config file domain.xml and installs it the Glassfish domain directory.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
635 #. Copies additional configuration files (supplied in the dvninstall/config directory of the Installer package) into the config directory of the Glassfish domain.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
636 #. Installs Glassfish Postgres driver (supplied in the dvninstall/pgdriver directory of the Installer package) into the lib directory in the Glassfish installation tree.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
637 #. Attempts to start Glassfish. The config file at this point contains the configuration settings that the DVN will need to run (see section :ref:`Glassfish Configuration, individual settings section<glassfish-configuration-individual-settings>` of the Appendix), but otherwise it is a "virgin", fresh config. Glassfish will perform some initialization tasks on this first startup and deploy some internal apps.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
638 #. If step 5. succeeds, the Installer attempts to deploy the DVN application (the Java archive DVN-EAR.ear supplied with the installer).
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
639 #. Stops Glassfish, populates the DVN database with the initial content (section :ref:`"PostgreSQL configuration"<postgresql-setup>`" of the Appendix), starts Glassfish.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
640 #. Attempts to establish connection to Rserve, using the access information obtained during step 2.c. If this fails, prints a warning message and points the user to the Prerequisites section of this guide where R installation is discussed.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
641 #. Finally, prints a message informing the user that their new DVN should be up and running, provides them with the server URL and suggests that they visit it, to change the default passwords and perhaps start setting up their Dataverse Network.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
642
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
643 Throughout the steps above, the Installer attempts to diagnose any
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
644 potential issues and give the user clear error messages when things go
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
645 wrong ("version of Postgres too old", "you must run this as root",
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
646 etc.).
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
647
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
648 Enough information is supplied in this manual to enable a user (a
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
649 skilled and rather patient user, we may add) to perform all the steps
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
650 above without the use of the script.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
651
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
652 .. _glassfish-configuration-template:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
653
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
654 Glassfish configuration template
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
655 ====================================
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
656
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
657 The configuration template (``domain.xml.TEMPLATE``) is part of the
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
658 installer zip package. The installer replaces the placeholder
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
659 configuration tokens (for example, ``%POSTGRES_DATABASE%``) with the
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
660 real values provided by the user to create the Glassfish configuration
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
661 file ``domain.xml``.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
662
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
663 ``[I was thinking of copy-and-pasting the entire template file here;
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
664 but it is 30K of XML, so I decided not to. The above explains where it
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
665 can be found, if anyone wants to look at it, for reference or
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
666 whatever]``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
667
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
668 .. _glassfish-configuration-individual-settings:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
669
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
670 Glassfish Configuration, individual settings
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
671 =====================================================
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
672
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
673 As explained earlier in the Appendix, the Installer configures Glassfish
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
674 by cooking a complete domain configuration file (``domain.xml``) and
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
675 installing it in the domain directory.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
676
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
677 All of the settings and options however can be configured individually
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
678 by an operator, using the Glassfish Admin Console.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
679
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
680 The Console can be accessed at the network port 4848 when Glassfish is
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
681 running, by pointing a browser at
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
682
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
683 ``http://[your host name]:4848/``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
684
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
685 and logging in as ``admin``. The initial password is ``adminadmin``. It
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
686 is of course strongly recommended to log in and change it first thing
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
687 after you run the Installer.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
688
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
689 The sections below describe all the configuration settings that would
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
690 need to be done through the GUI in order to replicate the configuration
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
691 file produced by the Installer. This information is provided for the
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
692 benefit of an advanced user who may want to experiment with individual
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
693 options. Or to attempt to install DVN on a platform not supported by our
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
694 installer; although we wish sincerely that nobody is driven to such
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
695 desperate measures ever.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
696
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
697 .. _jvm-options:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
698
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
699 JVM options
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
700 -----------------------
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
701
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
702 Under Application Server->JVM Settings->JVM Options:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
703
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
704 If you are installing Glassfish in a production environment, follow
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
705 these steps:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
706
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
707 #. | Delete the following options: -Dsun.rmi.dgc.server.gcInterval=3600000
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
708 | -Dsun.rmi.dgc.client.gcInterval=3600000
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
709 #. | Add the following options:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
710 | -XX:MaxPermSize=192m
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
711 | -XX:+AggressiveHeap
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
712 | -Xss128l
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
713 | -XX:+DisableExplicitGC
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
714 | -Dcom.sun.enterprise.ss.ASQuickStartup=false
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
715 #. | To install on a multi-processor machine, add the following:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
716 | ``-XX:+UseParallelOldGC``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
717 #. | To enable the optional HANDLE.NET installation and provide access to
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
718 | study ID registration, add the following (see the "Handles System"
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
719 | section in the "Optional Components" for
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
720 | details):
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
721 | ``-Ddvn.handle.baseUrl=<-Dataverse Network host URL>/dvn/study?globalId=hdl:``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
722 | ``-Ddvn.handle.auth=<authority>``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
723 | ``-Ddvn.handle.admcredfile=/hs/svr_1/admpriv.bin``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
724 #. | To enable the optional Google Analytics option on the Network Options
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
725 | page and provide access to site usage reports, add the following (see
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
726 | the "Google Analytics" section in the "Optional Components" for
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
727 | details):
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
728 | ``-Ddvn.googleanalytics.key=<googleAnalyticsTrackingCode>``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
729 #. | Configure the following option only if you run multiple instances
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
730 | of the GlassFish server for load balancing. This option controls
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
731 | which GlassFish instance runs scheduled jobs, such as harvest or
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
732 | export.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
733 | For the server instance that will run scheduled jobs, include the
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
734 | following JVM option:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
735 | ``-Ddvn.timerServer=true``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
736 | For all other server instances, include this JVM option:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
737 | ``-Ddvn.timerServer=false``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
738 | If you are installing Glassfish in either a production or development
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
739 | environment, follow these steps:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
740
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
741 - | Change the following options’ settings:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
742 | Change ``-client`` to ``-server``.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
743 | Change ``-Xmx512m`` to whatever size you can allot for the maximum
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
744 | Java heap space.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
745 | Set `` –Xms512m`` to the same value to which you set ``–Xmx512m``.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
746 - | To configure permanent file storage (data and documentation files
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
747 | uploaded to studies) set the following:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
748 | ``-Dvdc.study.file.dir=${com.sun.aas.instanceRoot}/config/files/studies``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
749 - | To configure the temporary location used in file uploads add the
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
750 | following:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
751 | ``-Dvdc.temp.file.dir=${com.sun.aas.instanceRoot}/config/files/temp``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
752 - | To configure export and import logs (harvesting and importing),
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
753 | add the following:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
754 | -Dvdc.export.log.dir=${com.sun.aas.instanceRoot}/logs/export
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
755 | -Dvdc.import.log.dir=${com.sun.aas.instanceRoot}/logs/import
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
756 - | Add the following:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
757 | -Djhove.conf.dir=${com.sun.aas.instanceRoot}/config
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
758 | -Ddvn.inetAddress=<host or fully qualified domain name of server
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
759 | on which Dataverse Network runs>
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
760 | -Ddvn.networkData.libPath=${com.sun.aas.instanceRoot}/applications/j2ee-
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
761 | apps/DVN-EAR
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
762 - | To manage calls to RServe and the R host (analysis and file upload), add
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
763 | the following:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
764 | ``-Dvdc.dsb.host=<RServe server hostname>``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
765 | ``-Dvdc.dsb.rserve.user=<account>``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
766 | ``-Dvdc.dsb.rserve.pwrd=<password>``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
767 | ``-Dvdc.dsb.rserve.port=<port number>``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
768
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
769
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
770 | For Installing R, see:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
771 | :ref:`R and R-Serve <r-and-rserve>`
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
772 | for information about configuring these values in the ``Rserv.conf``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
773 | file.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
774 | These settings must be configured for subsetting and analysis to
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
775 | work.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
776 - | To configure search index files set the following:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
777 | ``-Ddvn.index.location=${com.sun.aas.instanceRoot}/config``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
778 - | To use the optional customized error logging and add more information
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
779 | to your log files, set the following:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
780 | ``-Djava.util.logging.config.file= ${com.sun.aas.instanceRoot} /config/logging.properties``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
781 | **Note**: To customize the logging, edit the ``logging.properties`` file
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
782 - | The default size limit for file downloads is 100MB. To override this
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
783 | default add the following JVM option:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
784 | ``-Ddvn.batchdownload.limit=<max download bytes>``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
785
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
786 EJB Container
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
787 -----------------------------
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
788
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
789 Under Configuration->EJB Container->EJB Timer Service:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
790
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
791 #. | Set the Timer Datasource to the following:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
792 | ``jdbc/VDCNetDS``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
793 #. | Save the configuration.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
794
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
795 HTTP Service
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
796 -----------------------------
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
797
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
798 The HTTP Service configuration settings described in this section are suggested defaults. These settings are very important. There are no right values to define; the values depend on the specifics of your web traffic, how many requests you get, how long they take to process on average, and your hardware. For detailed the
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
799 | Sun Microsystems Documentation web site at the following URL:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
800
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
801 `http://docs.sun.com/ <http://docs.sun.com/>`_
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
802
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
803
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
804 | **Note**: If your server becomes so busy that it drops connections,
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
805 | adjust the Thread Counts to improve performance.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
806
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
807 #. Under Configuration->HTTP Service->HTTP
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
808 Listeners->\ ``http-listener-1``:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
809
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
810 - Listener Port: 80
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
811 - Acceptor Threads: The number of CPUs (cores) on your server
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
812
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
813 #. Under Configuration->HTTP Service, in the RequestProcessing tab:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
814
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
815 - Thread Count: Four times the number of CPUs (cores) on your server
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
816 - Initial Thread Count: The number of CPUs (cores)
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
817
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
818 #. Under Configuration->HTTP Service->Virtual Servers->server: add new property ``allowLinking`` with the value ``true``.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
819
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
820 #. | Under Configuration->HTTP Service, configure Access Logging:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
821
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
822 | format=%client.name% %auth-user-name% %datetime% %request% %status%
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
823 | %response.length%
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
824 | rotation-enabled=true
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
825 | rotation-interval-in-minutes=15
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
826 | rotation-policy=time
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
827 | rotation-suffix=yyyy-MM-dd
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
828
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
829 JavaMail Session
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
830 ------------------------------------
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
831
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
832 Under Resources->JavaMail Sessions\ ``->mail/notifyMailSession:``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
833
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
834 - | Mail Host: ``<your mail server>``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
835 | **Note**: The Project recommends that you install a mail server on the same machine as GlassFish and use ``localhost`` for this entry. Since email notification is used for workflow events such as creating a dataverse or study, these functions may not work properly if a valid mail server is not configured.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
836 - Default User: ``dataversenotify``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
837 This does not need to be a real mail account.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
838 - Default Return Address: ``do-not-reply@<your mail server>``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
839
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
840 JDBC Resources
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
841 ------------------------------------
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
842
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
843 **Under Resources->JDBC->Connection Pools:**
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
844
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
845
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
846 | Add a new Connection Pool entry:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
847
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
848 - entryName: ``dvnDbPool``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
849 - Resource Type: ``javax.sql.DataSource``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
850 - Database Vendor: ``PostgreSQL``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
851 - DataSource ClassName: ``org.postgresql.ds.PGPoolingDataSource``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
852 - Additional Properties:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
853
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
854 - ConnectionAttributes: ``;create=true``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
855 - User: ``dvnApp``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
856 - PortNumber: ``5432`` (Port 5432 is the PostgreSQL default port.)
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
857 - Password: ``<Dataverse Network application database password>``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
858 - DatabaseName: ``<your database name>``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
859 - ServerName: ``<your database host>``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
860 - JDBC30DataSource: ``true``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
861
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
862 |
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
863
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
864 **Under Resources->JDBC->JDBC Resources:**
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
865
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
866 | Add a new JDBC Resources entry:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
867
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
868 - JNDI Name: ``jdbc/VDCNetDS``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
869 - Pool Name: ``dvnDbPool``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
870
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
871 JMS Resources
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
872 -----------------------------------------
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
873
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
874 Under Resources->JMS Resources:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
875
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
876 #. Add a new Connection Factory for the DSB Queue:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
877
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
878 - JNDI Name: ``jms/DSBQueueConnectionFactory``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
879 - Resource Type: ``javax.jms.QueueConnectionFactory``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
880
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
881 #. Add a new Connection Factory for the Index Message:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
882
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
883 - JNDI Name: ``jms/IndexMessageFactory``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
884 - Resource Type: ``javax.jms.QueueConnectionFactory``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
885
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
886 #. Add a new Destination Resource for the DSB Queue:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
887
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
888 - JNDI Name: ``jms/DSBIngest``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
889 - Physical Destination Name: ``DSBIngest``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
890 - Resource Type: ``javax.jms.Queue``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
891
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
892 #. Add a new Destination Resource for the Index Message:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
893
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
894 - JNDI Name: ``jms/IndexMessage``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
895 - Physical Destination Name: ``IndexMessage``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
896 - Resource Type: ``javax.jms.Queue``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
897
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
898 .. _postgresql-setup:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
899
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
900 PostgreSQL setup
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
901 =======================
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
902
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
903 The following actions are normally performed by the automated installer
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
904 script. These steps are explained here for reference, and/or in case
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
905 your need to perform them manually:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
906
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
907 1. Start as root, then change to user postgres:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
908
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
909 ``su postgres``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
910
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
911 Create DVN database usert (role):
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
912
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
913 ``createuser -SrdPE [DB_USERNAME]``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
914
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
915 (you will be prompted to choose a user password).
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
916
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
917 Create DVN database:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
918
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
919 ``createdb [DB_NAME] --owner=[DB_USERNAME]``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
920
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
921 ``[DB_NAME]`` and ``[USER_NAME]`` are the names you choose for your DVN database and database user. These, together with the password you have assigned, will be used in the Glassfish configuration so that the application can talk to the database.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
922
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
923 2. Before Glassfish can be configured for the DVN app, the Postgres driver needs to be installed in the <GLASSFISH ROOT>/lib directory. We supply a version of the driver known to work with the DVN in the dvninstall/pgdriver directory of the Installer bundle. (This is the :ref:`"What does the Installer do?" <what-does-the-intstaller-do>` section of this appendix) An example of the installed location of the driver:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
924
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
925 ``/usr/local/glassfish/lib/postgresql-8.3-603.jdbc4.jar``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
926
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
927 3. Finally, after the DVN application is deployed under Glassfish for the first time, the database needs to be populated with the initial content:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
928
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
929 ``su postgres``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
930 ``psql -d [DB_NAME] -f referenceData.sql``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
931
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
932 The file referenceData.sql is provided as part of the installer zip package.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
933
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
934 RedHat startup file for glassfish, example
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
935 ====================================================
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
936
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
937 Below is an example of a glassfish startup file that you may want to
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
938 install on your RedHat (or similar) system to have glassfish start
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
939 automatically on boot.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
940
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
941 | Install the file as ``/etc/init.d/glassfish``, then run ``chkconfig glassfish on``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
942
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
943 Note that the extra configuration steps before the domain start line,
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
944 for increasing the file limit and allowing "memory overcommit". These
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
945 are useful settings to have on a production server.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
946
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
947 | You may of course add extra custom configuration specific to your
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
948 setup.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
949
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
950 .. code-block:: guess
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
951
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
952 #! /bin/sh
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
953 # chkconfig: 2345 99 01
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
954 # description: GlassFish App Server
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
955 set -e
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
956 ASADMIN=/usr/local/glassfish/bin/asadmin
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
957 case "$1" in
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
958 start)
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
959 echo -n "Starting GlassFish server: glassfish"
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
960 # Increase file descriptor limit:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
961 ulimit -n 32768
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
962 # Allow "memory overcommit":
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
963 # (basically, this allows to run exec() calls from inside the
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
964 # app, without the Unix fork() call physically hogging 2X
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
965 # the amount of memory glassfish is already using)
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
966 echo 1 > /proc/sys/vm/overcommit_memory
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
967 $ASADMIN start-domain domain1 echo "."
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
968 ;;
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
969 stop)
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
970 echo -n "Stopping GlassFish server: glassfish"
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
971 $ASADMIN stop-domain domain1
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
972 echo "."
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
973 ;;
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
974 *)
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
975 echo "Usage: /etc/init.d/glassfish {start|stop}"
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
976
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
977 exit 1
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
978 esac
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
979 exit 0
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
980
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
981
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
982 Enabling secure remote access to Asadmin
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
983 ========================================
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
984
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
985 As was mentioned in the Glassfish section of the manual, in version
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
986 3.1.2 admin interface (asadmin) is configured to be accessible on the
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
987 localhost interface only. If you need to be able to access the admin
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
988 console remotely, you will have to enable secure access to it. (It will
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
989 be accessible over https only, at ``https://<YOUR HOST>:4848``; connections
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
990 to ``http://<YOUR HOST>:4848`` will be automatically redirected to the https
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
991 interface)
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
992
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
993 The following must be done as root:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
994
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
995 #. First you need to configure the admin password:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
996
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
997 ``<GF LOCATION>/glassfish3/bin/asadmin change-admin-password``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
998
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
999 (since you didn't create one when you were installing Glassfish, leave the "current password" blank, i.e., hit ENTER)
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1000
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1001 #. Enable the secure access:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1002
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1003 ``<GF LOCATION>/glassfish3/bin/asadmin enable-secure-admin``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1004
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1005 (Note that you will need to restart Glassfish after step 2. above)
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1006
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1007 .. _using-lockss-with-dvn:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1008
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1009 Using LOCKSS with DVN
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1010 =======================================
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1011
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1012 DVN holdings can be crawled by LOCKSS servers (`www.lockss.org <http://www.lockss.org>`__). It is made possible by the special plugin developed and maintained by the DVN project, which a LOCKSS daemon utilizes to crawl and access materials served by a Dataverse network.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1013
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1014 The current stable version of the plugin is available at the following location:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1015
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1016 `http://lockss.hmdc.harvard.edu/lockss/plugin/DVNOAIPlugin.jar <http://lockss.hmdc.harvard.edu/lockss/plugin/DVNOAIPlugin.jar>`__
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1017
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1018
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1019 As of January 2013 and DVN version 3.3, the plugin is compatible with the LOCKSS daemon version 1.55. The plugin sources can be found in the main DVN source tree in `https://dvn.svn.sourceforge.net/svnroot/dvn/dvn-app/trunk/src/DVN-lockss <https://dvn.svn.sourceforge.net/svnroot/dvn/dvn-app/trunk/src/DVN-lockss>`_ (please note that the DVN project is currently **in the process of moving to gitHub!** The preserved copy of the 3.3 source will be left at the URL above, together with the information on the current location of the source repository).
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1020
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1021 In order to crawl a DVN, the following steps need to be performed:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1022
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1023 #. Point your LOCKSS daemon to the plugin repository above. (Refer to the LOCKSS documentation for details);
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1024 #. Create a LOCKSS Archival Unit for your target DVN:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1025
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1026 In the LOCKSS Admin Console, go to **Journal Configuration** -> **Manual Add/Edit** and click on **Add Archival Unit**.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1027
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1028 On the next form, select **DVNOAI** in the pull down menu under **Choose a publisher plugin** and click **Continue**.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1029
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1030 Next configure the parameters that define your DVN Archival Unit. LOCKSS daemon can be configured to crawl either the entire holdings of a DVN (no OAI set specified), or a select Dataverse.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1031
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1032 Note that LOCKSS crawling must be authorized on the DVN side. Refer to
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1033 the :ref:`"Edit LOCKSS Settings" <edit-lockss-harvest-settings>`
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1034 section of the DVN Network Administrator Guide for the instructions on
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1035 enabling LOCKSS crawling on the network level, and/or to the
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1036 :ref:`Enabling LOCKSS access to the Dataverse <enabling-lockss-access-to-the-dataverse>`
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1037 of the Dataverse Administration Guide. Once you allow LOCKSS crawling of
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1038 your Dataverse(s), you will need to enter the URL of the "LOCKSS
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1039 Manifest" page provided by the DVN in the configuration above. For the
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1040 network-wide archival unit this URL will be
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1041 ``http``\ ``://<YOUR SERVER>/dvn/faces/ManifestPage.xhtml``; for an
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1042 individual dataverse it is
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1043 ``http``\ ``://<YOUR SERVER>/dvn/dv/<DV ALIAS>/faces/ManifestPage.xhtml.``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1044
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1045 | The URL of the DVN OAI server is ``http``\ ``://<YOUR DVN HOST>/dvn/OAIHandler``.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1046
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1047 Read Only Mode
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1048 ===================
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1049
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1050 A Read Only Mode has been established in DVN to allow the application to remain available while deploying new versions or patches. Users will be able to view data and metadata, but will not be able to add or edit anything. Currently there is no way to switch to Read Only Mode through the application.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1051 In order to change the application mode you must apply the following queries through ``psql`` or ``pgAdmin``:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1052
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1053 To set to Read Only Mode:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1054
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1055 | ``BEGIN;``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1056 | ``SET TRANSACTION READ WRITE;``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1057 | ``-- Note database and user strings may have to be modified for your particular installation;``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1058 | ``-- You may also customize the status notice which will appear on all pages of the application;``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1059 | ``update vdcnetwork set statusnotice = "This network is currently in Read Only state. No saving of data will be allowed.";``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1060 | ``ALTER DATABASE "dvnDb" set default_transaction_read_only=on;``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1061 | ``Alter user "dvnApp" set default_transaction_read_only=on;``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1062 | ``update vdcnetwork set statusnotice = "";``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1063 | ``END;``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1064
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1065 To return to regular service:
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1066
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1067 | ``BEGIN;``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1068 | ``SET TRANSACTION READ WRITE;``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1069 | ``-- Note database and user strings may have to be modified for your particular installation;``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1070 | ``ALTER DATABASE "dvnDb" set default_transaction_read_only=off;``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1071 | ``Alter user "dvnApp" set default_transaction_read_only=off;``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1072 | ``update vdcnetwork set statusnotice = "";``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1073 | ``END;``
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1074
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1075 Backup and Restore
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1076 ================================
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1077
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1078 **Backup**
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1079
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1080 | The PostgreSQL database and study files (contained within the Glassfish directory by default but this is :ref:`configurable via JVM options <jvm-options>`) are the most critical components to back up. The use of standard PostgreSQL tools (i.e. pg\_dump) is recommended.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1081
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1082 Glassfish configuration files (i.e. domain.xml, robots.txt) and local
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1083 customizations (i.e. images in the docroot) should be backed up as well.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1084 In practice, it is best to simply back up the entire Glassfish directory
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1085 as other files such as logs may be of interest.
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1086
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1087 | **Restore**
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1088
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1089 Restoring DVN consists of restoring the PostgreSQL database and the
1b2188262ae9 adding the installer.
"jurzua <jurzua@mpiwg-berlin.mpg.de>"
parents:
diff changeset
1090 Glassfish directory.