You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafodion.apache.org by "Carol Pearson (JIRA)" <ji...@apache.org> on 2016/02/23 23:58:18 UTC
[jira] [Commented] (TRAFODION-1839) Trafodion Installer Evolution
[ https://issues.apache.org/jira/browse/TRAFODION-1839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15159821#comment-15159821 ]
Carol Pearson commented on TRAFODION-1839:
------------------------------------------
This is a great summary - Thanks! I have a few comments/questions/suggestions. Dunno whether it's better to just list them here in one comment or to have separate comments for each area, so I'll go with one big comment for now.
****************************************************
On this:
> IT departments often separate responsibilities such as security administration, configuration changes, etc
I've seen several places that separate out functions based on privilege. That is, if it requires root access, then it must be done by a different group than the data administrators. So it's not just creating the user ID, it's also installing RPMs, vetting packages, etc. The installation process for Trafodion should allow for that. Where the trafodion user ID (and any other userids that ultimately might be created as Trafodion grows) needs administrative privileges should be carefully documented as well. For regulatory reasons, some shops strictly configure the commands that a user ID can perform with sudo-equivalents and disallow all other commands from anonymous IDs like the trafodion userid.
****************************************************
On this:
> The following distinct install phases are defined.
For many of these, the install phase should run stand-alone. That is, Environment validation should be invokable directly and not necessarily in the context of an install (say, for (a) looking for perturbations in the environment over time, or (b) doing a pre-check as part of planning for a Trafodion installation. Ditto for configuration building, Environment setting changes, etc.
Each of these phases should be idempotent - if the answer is, "this phase is already done", then the phase (or step within the phase) returns an OK result, rather than an error. That way, we build in restartability from the start. Obvious, I know, but we should state it as a design principle.
****************************************************
On this:
> Change the Guided Mode to be a configuration builder that builds a fully-commented configuration file.
I think it is implied, but just to be explicit, the "fully-commented configuration file" is exactly the same as would be hand-built in expert mode, right? If so, IMO we should build a version that constructs an "empty" (no values filled in, just the system-neutral value defaults, and no physical locations for Hadoop components, CLASSPATH, JAVA_HOME, etc.) or "default" configuration file (like the "empty" file except including system-specific defaults like Hadoop directories, CLASSPATH, JAVA_HOME, etc.). Combined with the "run stand-alone" capability mentioned previously, that allows an expert-mode development experience to build/update a current-version configuration file. And it's pretty easy to do.
I think we need to take a long-term view here of how this file gets built/extended because it will have versioning issues as Trafodion grows and adds features that need special configuration user input. From a build perspective, I would recommend that the input for constructing this file come from a separate flat text file (or a CSV file) so that if someone were to, say, add a new component, all they need do is update the separate text file and new/update configuration files are created automatically.
To be specific, what I'm mentally envisioning is that the configuration builder go to this file, read a line, build the configuration file line for it, and if in guided mode, prompt for the data. If in "default" mode, discover what it can based on info in the text file. The loop that handles this piece should be configuration item neutral. This way, we can have people adding new configuration parameters in parallel or simultaneous strings without worrying about merge problems. Each item would have something like:
(1) Name of parameter
(2) Help text
(3) Default value
(4) Auto obtain mechanism
(5) User specified value at configuration time
in some arbitraty order.
****************************************************
On this:
> reduce user-supplied information to the absolute minimum: Trafodion user password
Some sites do NOT have a user password for anonymous IDs. SOX compliance means that no user should ever log in directly to these IDs from any kind of shell. So instead, the only way to become a non-specific ID such as trafodion (or hadoop or ....) is to log in as an authenticated user and then switch to the non-specific id via a known mechanism that then logs the operations done as that userid, along with the previous userid for identification. The Trafodion installer needs to support this ultimately, so let's think through how it could work short and longer term.
****************************************************
On this:
> rely on REST APIs/configuration files to discover nodes
Trafodion can be installed on a subset of nodes known to Hadoop or HBase. I believe that this could be supported by doing manual configuration, but we need to think about how to make that easy for users. Node specification might do some defaulting based on ranges of node numbers (though that builds in an ugly dependency on assumptions about sequential node name construction and addition), and on top of that we might allow editing. There are rules about what can and cannot be allowed, configuration-wise though that would need to be validated, both as part of this and independently as part of doing subsequent steps or just looking for changes in configuration as part of a reinstall (or other reasons, for that matter.
****************************************************
On this:
> do more discovery using the REST APIs/Hadoop configuration files
I don't know the answer to this, and it requires a bit of research - for straight-up Apache Hadoop/HBase configuration and with Big Top, is the discovery process different? Does the installer need to note other/additional versions of software? Should it save that configuration somewhere for later use? And if so, is that "save the configuration somewhere for later use" something that Trafodion should do anyway for better history management? Note that this configuration is different than the Trafodion configuration because it includes what this installer phase considers significant enough to collect about the configuration.
****************************************************
On this:
> 3. Configuration changer
This should have "Environment" in front of it, IMO. This is where Hadoop, etc. changes are made (the idempotent ones I spoke of earlier). And again, this could be run stand-alone and outside of the installation process as was noted earlier. At which point, this step just becomes a validation step in the actual install.
****************************************************
On this:
> 5. Package Download: Validate/download mode for required packages.
Once again, this requires administrative access and so should might need to be done separately and elsewhere. It also might be done from an internal software depot or local repository. Up to the user to decide, and if separated out from the overall install workflow, there should still be a vaildation phase 5.
****************************************************
On this:
> No argument displays help text
This is non-standard, right? By default, trafodion_install would be expected to do the full installation. The more standard convention that we see elsewhere has -h or --help to show help text. At a minimum, trafodion_install should support the -h/--help options, and I personally think that no arguments should do something using all default settings, rather than spit syntax at me. Simple is better.
****************************************************
On this:
> All command options
This presentation wasn't at all clear to me. If I understand it correctly, I have to explicitly state each install step that I want to run, rather than having the installer decide which steps need to run based on what steps are available. If I add a new phase to the installer at a later point, I have to go update all my operational procedures to invoke it. Is that understanding correct?
I was also not clear on the -v option, because it says it applies only to -s and -p, but then also is referenced on -u? And why couldn't it be used on the -b (validate the configuration file but don't run), for example?
On -a, is that the #7 Activation step? The help text says "Starts Trafodion", which I interpret as "running an sqstart" but the text for #7 above says: 7. Activation: As today which includes doing the initialize trafodion; step, right? Is install_trafodion -a just a synonym for sqstart or something more?
****************************************************
Additional Comment
We need to think about how to handle environmet setup like initial Traofidon settings, "mandatory" or default CQDs and other configuration file parameters like trafodion ports and properties. Do those come as part of the activation step as now (see dcsstart, etc.) or via some other mechanism?
****************************************************
Again, this is all great - I can see how I would implement this, and how it evolves from the current installer. THANKS!
> Trafodion Installer Evolution
> -----------------------------
>
> Key: TRAFODION-1839
> URL: https://issues.apache.org/jira/browse/TRAFODION-1839
> Project: Apache Trafodion
> Issue Type: Improvement
> Components: documentation, installer
> Affects Versions: 2.0-incubating
> Reporter: Gunnar Tapper
>
> Umbrella for evolution of the Trafodion Installer.
> Overall motivation is:
> * Position Trafodion as a pure Hadoop add-on: the Hadoop environment must
> be installed and fully functional before installing Trafodion.
> * Use as much of the existing function as possible.
> * Define distinct phases that fit into common IT practices.
> * Enhanced user experience.
> Consideration:
> IT departments often separate responsibilities such as security administration,
> configuration changes, etc. These type of activities need to be planned and
> executed during specific maintenance windows. All acivities are audited in
> order to be compliant with local regulations; for examle, the
> Sarbanes-Oxley Act.
> In contrast, the current behavior of the Trafodion Installer, which
> assumes that it can obtain configuration information, change Hadoop configuration,
> install software packages, set up user IDs, and install/deploy Trafodion in one
> session.
> The following distinct install phases are defined.
> 1. Environment validation: Ensure that the environment is suited for Trafodion.
> Identify required changes.
> The Trafodion Scanner should be able to fulfill this need. The current Scanner
> Configuration file is out-of-date so it generates false positives such as
> flagging hyper threading, which is now OK.
> NOTE: Need to spend more time on the Scanner. The design and implementation
> looks quite elegant and robust.
> 2. Configuration builder: Automated Mode (aka expert mode) uses a documented
> configuration file with environmental information to drive the installation.
> Guided Mode prompts the user for information creating a comment-free
> configuration file.
> Change the Guided Mode to be a configuration builder that builds a
> fully-commented configuration file. Enhance Guided Mode to do more
> discovery using the REST APIs/Hadoop configuration files to obtain
> information that the user have to provide today.
> The goal here is to reduce user-supplied information to the
> absolute minimum: Trafodion user password, target install directory,
> tar file, and distribution-manager user and password.
> From past experiences, it's possible to automatically detect what type
> of Hadoop installation is used, URL to distribution manager or location
> of configuration files, and then rely on REST APIs/configuration files
> to discover nodes, current settings, and so forth.
> All prompts are done in a loop to allow for review/approval of the
> input. When completed, the user is shown the overall settings in
> a numbered menu thereby allowing for new edits, if needed. Once approved,
> the commented configuration file is created thereby allowing the
> user to directly edit the file in later upgrades. As today, new
> runs of the Installer reads the configuration file for prompt
> default values.
> It's probably best to implement discovery functions in Python because it
> has good handling of REST APIs, reading XML files, and parsing
> JSON responses.
> 3. Configuration changer: Trafodion requires specific system, HDFS,
> and HBase settings. These should be implemented BEFORE installing
> Trafodion so that the user can a) time the required changes
> b) choose to make the changes using an alternative means
> c) validate that the changes did not break their Hadoop environment.
> Keep today's capability of restarting Hadoop services but don't invoke
> configuration change unless required. (Don't do it blindly like today; restarting
> Hadoop services is a big deal and should be avoided as much as possible.)
> 4. User Setup: Create/validate mode to allow for cases where
> security administrators must perform user creation.
> 5. Package Download: Validate/download mode for required packages.
> 6. Trafodion Install: As today.
> 7. Activation: As today
> trafodion_install adds a set of new arguments to invoke the different
> steps per the list above:
> No argument displays help text
> -a, --automated Run installer in automated mode. Cannot be combined with -b.
> -c, --config_file Location of configuration file
> -v, --validate Validatation mode. Applies to -s and -p.
> -s, --scan Checks the current Hadoop and system environment for Trafodion usage.
> -b, --build Guided Mode. Builds --config_file.
> -u, --user Creates/validates Trafodion user. -v defines validate mode.
> -p, --package Installs/validates required software packages. -v defines validate mode.
> -i, --install Installs the Trafodion software.
> -a, --activate Starts Trafodion.
> Other changes:
> * Move installer settings to a separate file that's sourced in. Today, most installer files
> defines the settings (in variables) within the file itself.
> * Support sudo alternates (such as pbrun) via edit of installer-settings file.
> * Handle multiple clusters in discovery. Today's code assumes one cluster only when interacting with REST APIs.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)