How to Set up FTS on Linux

How to Set up FTS on Linux

<p>How to set up FTS on Linux</p><p>Step 1 - Creating the files</p><p>1 - Entity-masterdb-userdb.txt</p><p>2 - Solr-masterdb-userdb.xml</p><p>3 - CQ-masterdb-userdb.xml</p><p>Navigate to /opt/rational/clearquest</p><p>- all of the following commands for this step can be executed from this directory</p><p>From a terminal at this location run the following commands in this order:</p><p>(1) --Command to create Entity-masterdb-userdb.txt</p><p>- masterdb is the name of the master database</p><p>- userdb is the name of the user database</p><p>- this is case sensitive – check your database definition, user, password if receiving login errors</p><p>- if cqperl, cqtsettup.pl cannot be found – check current directory bin/cqperl cqtssetup.pl –s masterdb -d userdb -u user -p password -o Entity example: masterdb = Ozma userdb = ozuse user = admin password = “” (none)</p><p>[root@localhost clearquest]# bin/cqperl cqtssetup.pl -s Ozma -d ozuse -u admin -p "" -o Entity DBSet : Ozma DBName : ozuse User : admin Pwd : ******** Output : Entity File : Info : Writing to: ./Entity-Ozma-ozuse.txt Processing : UseCase [total: 0] Processing : TMTestPlan [total: 0] Processing : Email_Rule [total: 0] Processing : TMExternalFile [total: 0] Processing : TestLog [total: 0] Processing : CustomerTestCase [total: 0] Processing : Defect [total: 1] Processing : SoftwareCategory [total: 0] Processing : TMTestLog [total: 0] Processing : TMConfiguration [total: 0] Processing : BusinessUseCase [total: 0] Processing : Component [total: 0] Processing : BUCUCOrder [total: 0] Processing : Customer [total: 0] Processing : TMComputerGroup [total: 0] Processing : TMComputer [total: 0] Processing : TMSuiteLog [total: 0] Processing : TMIteration [total: 0] Processing : BTBuild [total: 0] Processing : TMTestType [total: 0] Processing : TMConfigurationAttribute [total: 0] Processing : Object [total: 0] Processing : Request [total: 0] Processing : TMConfiguredTestCase [total: 0] Processing : ConfiguredTestCase [total: 0] Processing : ActionAccessControl [total: 0] Processing : TMAssetRegistry [total: 0] Processing : ToDo [total: 0] Processing : TMTestSuite [total: 0] Processing : TMTestCase [total: 0] Processing : Subcomponent [total: 0] Processing : TMConfigurationValue [total: 0] Processing : TMFileLocation [total: 0] Processing : TestCase [total: 0] Info : Total Records 1 Info : Wrote to: ./Entity-Ozma-ozuse.txt Status : Completed</p><p>- This will create Entity-masterdb-userdb.txt in your current directory(clearquest)</p><p>(2) --Command to create Solr-masterdb-userdb.xml bin/cqperl cqtssetup.pl –s masterdb -d userdb -u user -p password -o Solr –f Entity- masterdb-userdb.txt – (file created from first step) example:</p><p>[root@localhost clearquest]# bin/cqperl cqtssetup.pl -s Ozma -d ozuse -u admin -p "" -o Solr -f Entity-Ozma-ozuse.txt DBSet : Ozma DBName : ozuse User : admin Pwd : ******** Output : Solr File : Entity-Ozma-ozuse.txt Info : Writing to: ./Solr-Ozma-ozuse.xml Processing : UseCase [total: 0] Processing : TMTestPlan [total: 0] Processing : Email_Rule [total: 0] Processing : TMExternalFile [total: 0] Processing : TestLog [total: 0] Processing : CustomerTestCase [total: 0] Processing : Defect [total: 1] Processing : SoftwareCategory [total: 0] Processing : TMTestLog [total: 0] Processing : TMConfiguration [total: 0] Processing : BusinessUseCase [total: 0] Processing : Component [total: 0] Processing : BUCUCOrder [total: 0] Processing : Customer [total: 0] Processing : TMComputerGroup [total: 0] Processing : TMComputer [total: 0] Processing : TMSuiteLog [total: 0] Processing : TMIteration [total: 0] Processing : BTBuild [total: 0] Processing : TMTestType [total: 0] Processing : TMConfigurationAttribute [total: 0] Processing : Object [total: 0] Processing : Request [total: 0] Processing : TMConfiguredTestCase [total: 0] Processing : ConfiguredTestCase [total: 0] Processing : ActionAccessControl [total: 0] Processing : TMAssetRegistry [total: 0] Processing : ToDo [total: 0] Processing : TMTestSuite [total: 0] Processing : TMTestCase [total: 0] Processing : Subcomponent [total: 0] Processing : TMConfigurationValue [total: 0] Processing : TMFileLocation [total: 0] Processing : TestCase [total: 0] Info : Total Records 1 Info : Wrote to: ./Solr-Ozma-ozuse.xml Status : Completed [root@localhost clearquest]# </p><p>- This will create Solr-masterdb-userdb.xml in your current directory (clearquest)</p><p>(3) --Command to create CQ-masterdb-userdb.xml bin/cqperl cqtssetup.pl –s masterdb -d userdb -u user -p password -o CQ –f Entity- masterdb-userdb.txt example:</p><p>[root@localhost clearquest]# bin/cqperl cqtssetup.pl -s Ozma -d ozuse -u admin -p "" -o CQ -f Entity-Ozma-ozuse.txt DBSet : Ozma DBName : ozuse User : admin Pwd : ******** Output : CQ File : Entity-Ozma-ozuse.txt Info : Writing to: ./CQ-Ozma-ozuse.xml Processing : UseCase [total: 0] Processing : TMTestPlan [total: 0] Processing : Email_Rule [total: 0] Processing : TMExternalFile [total: 0] Processing : TestLog [total: 0] Processing : CustomerTestCase [total: 0] Processing : Defect [total: 1] Processing : SoftwareCategory [total: 0] Processing : TMTestLog [total: 0] Processing : TMConfiguration [total: 0] Processing : BusinessUseCase [total: 0] Processing : Component [total: 0] Processing : BUCUCOrder [total: 0] Processing : Customer [total: 0] Processing : TMComputerGroup [total: 0] Processing : TMComputer [total: 0] Processing : TMSuiteLog [total: 0] Processing : TMIteration [total: 0] Processing : BTBuild [total: 0] Processing : TMTestType [total: 0] Processing : TMConfigurationAttribute [total: 0] Processing : Object [total: 0] Processing : Request [total: 0] Processing : TMConfiguredTestCase [total: 0] Processing : ConfiguredTestCase [total: 0] Processing : ActionAccessControl [total: 0] Processing : TMAssetRegistry [total: 0] Processing : ToDo [total: 0] Processing : TMTestSuite [total: 0] Processing : TMTestCase [total: 0] Processing : Subcomponent [total: 0] Processing : TMConfigurationValue [total: 0] Processing : TMFileLocation [total: 0] Processing : TestCase [total: 0] Info : Total Records 1 Info : Wrote to: ./CQ-Ozma-ozuse.xml Status : Completed</p><p>– This will create CQ-masterdb-userdb.xml in your current directory (clearquest)</p><p>(4) – encrypting the administrator password </p><p>**note-this step is not required if admin password is blank** bin/cqperl cqtsdbcrawler.pl –encrypt –s masterdb -d userdb -u user -p password –kf key.txt -pf password.txt example:</p><p>[root@localhost clearquest]# bin/cqperl cqtsdbcrawler.pl -encrypt -s Ozma -d ozuse -u admin -p pass2encrypt -kf key.txt -pf password.txt</p><p>- This will create the two files key.txt and password.txt in your current directory</p><p>Step 2 – setting up the CQ.Solr directory </p><p>- In /opt/rational/clearquest there is a directory called CQ.Solr.</p><p>- Copy this directory and paste it into the file system root (/)</p><p>- In CQ.Solr you will see a folder SAMPL</p><p> o Rename this to the userdb</p><p>- Copy the files you have created in Step 1 into /CQ.Solr/userdb/Solr/</p><p>- Go to the directory opt\rational\common\eWAS\bin</p><p>- Run the following command to set the Solr path:</p><p>./wsadmin.sh –conntype NONE –lang jython –f setSolrHome.py –interactive:yes /CQ.Solr/userdb/Solr/solr</p><p>**when asked to modify, choose no** Example:</p><p>[root@localhost bin]# ./wsadmin.sh -conntype NONE -lang jython -f setSolrHome.py -interactive:yes /CQ.Solr/ozuse/Solr/solr/</p><p>WASX7357I: By request, this scripting client is not connected to any server process. Certain configuration and application operations will be available in local mode. WASX7303I: The following options are passed to the scripting environment and are available as arguments that are stored in the argv variable: "[-interactive:yes, /CQ.Solr/ozuse/Solr/solr/]"</p><p>This script change 'genericJvmArguments' to set 'solr.solr.home'</p><p>Current setting for 'genericJvmArguments' is: -Dsolr.solr.home=/CQ.Solr/ozuse/Solr/ New setting for 'genericJvmArguments' is: -Dsolr.solr.home=/CQ.Solr/ozuse/Solr/solr/ Do you want to modify it? (y/n): n</p><p>'genericJvmArguments' was changed to: -Dsolr.solr.home=/CQ.Solr/ozuse/Solr/solr/</p><p>The 'cqsearchprofile' MUST be restarted for this change to take effect.</p><p>- You can test if the Solr directory has been set up correctly by doing the following: o Restart the eWAS service under System->Administration->Server Settings->Services o Go to the website http:// server /solr/admin/index.jsp . server = name of web server: if performing this operation on the server = http://localhost/solr/admin/index.jsp . If this page does not load, check the ./wsadmin.sh command, especially the path specified for the CQ.Solr directory. Verify this with the actual location of the CQ.Solr folder.</p><p>Step 3 – File modifications</p><p>(1) – updating the schema.xml file</p><p>- Open these two files in the text editor:</p><p> o \CQ.Solr\userdb\Solr\solr\conf\schema.xml</p><p> o \CQ.Solr\userdb\Solr\Solr-masterdb-userdb.xml</p><p>- In schema.xml, replace <schema name =”SAMPLE” with <schema name =”userdb”</p><p>- Copy all text between the <fields>… </fields> tags from Solr-masterdb- userdb.xml and overwrite the text in schema.xml between these same tags <fields>… </fields>.</p><p>- Copy all text beginning with <copyfields> tags from Solr-masterdb-userdb.xml and overwrite all <copyfields> text in schema.xml </p><p>- Save and close schema.xml (no modifications need to be made to Solr-masterdb- userdb.xml, so this can just be closed)</p><p>- To check for errors, you can open the schema.xml in a browser. If the contents display correctly then the xml formatting is correct. If you receive errors, such as for tags, you may have overwritten a tag or made a mistake elsewhere. (2) -- updating the CQ-masterdb-userdb.xml</p><p>- open \CQ.Solr\userdb\Solr\CQ-masterdb-userdb.xml in a text editor</p><p>- For each record type in your schema, you will see a <CQEntity tag. Each field name contains a property called disp_order. This property sets the corresponding field to be displayed when performing a full text search on that record type. </p><p>- “0” means the field will not be displayed. </p><p>- At least one <field per <CQEntity must be set to disp_order = “1”. You can specify the order of appearance of each field by setting their disp_order properties to a sequence.</p><p>- Once this is done for each <CQEntity save and close this file unless you have encrypted the password.</p><p>** this next adjustment only needs to be done if the password has been encrypted**</p><p>- At the beginning of the file, locate the <repository tag</p><p>- Open \CQ.Solr\userdb\Solr\password.txt in the text editor and copy the encrypted password, including the == signs, and paste it into the password field of the <repository tag located in CQ-masterdb-userdb.xml. </p><p>- Specify the path of the key.txt file in keyfile property: keyfile=”\CQ.Solr\userdb\Solr\key.txt"</p><p>- Save and close CQ-masterdb-userdb.xml</p><p>- This file can be checked for errors as well by opening in a browser. If page displays correctly then the .xml formatting is correct.</p><p>Step 3: Enabling the Full Text Search radio button.</p><p>**This must be done on a Windows operating system**</p><p>- Copy the CQ-masterdb-userdb.xml file to the C:\ > directory - Run the following command:</p><p>C:\>installutil setmasterpropertyfromfile connection_name –user_db_name userdb user password TEXT_SEARCH_PROPERTY C:\ >CQ-masterdb-userdb.xml - connection_name = name of masterdb connection as defined in the maintenance tool. - password – if blank, use “” - if all goes well, utility will return an exit code of 0</p><p>Step 4: Indexing records for search.</p><p>- navigate to the /opt/rational/clearquest directory - run the following command: bin/cqperl cqtsdbcrawler.pl –batch /CQ.Solr/userdb/Solr/ CQ-masterdb-userdb.xml example:</p><p>[root@localhost clearquest]# bin/cqperl cqtsdbcrawler.pl -batch /CQ.Solr/ozuse/Solr/CQ-Ozma-ozuse.xml tzmappings: Illegal format at near line 11. Mar 20, 2009 1:41:11 PM com.ibm.rational.clearquest.cqtscrawler.common.ExtractionConfig logConfig</p><p>… -skipped lines which display checking multiple record types for indexing records-</p><p>Mar 20, 2009 1:41:13 PM com.ibm.rational.clearquest.cqtscrawler.batch.BatchController extractData INFO: cqtsdbcrawer finished at Fri Mar 20 13:41:13 GMT+01:00 2009 [root@localhost clearquest]# </p><p>*** errors at this point will indicate a number of issues. If the indexing does not complete, check the schema.xml file for errors, and the password and key file fields of the CQ-masterdb-userdb.xml file. Be sure that these are correct.***</p><p>Optional: Setting the indexing service to start at boot sequence:</p><p>Navigate to the following path: opt/rational/common/CM/profiles/cqsearchprofile/config/cells/localhostCQSearchProfile Node01Cell/applications/cqtsdbcrawler.ear/deployments/cqtsdbcrawler/cqtsdbcrawler.wa r/WEB-INF/</p><p>- open web.xml in a text editor and uncomment <load-on-startup>1</load-on- startup> - save and close</p><p> o Once these steps have been completed, Restart the eWAS service under System->Administration->Server Settings->Services</p>

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    9 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us