Posts

Showing posts from 2016

Ambari Name Node Startup Fails when safe mode is on.

I'm having a weird issue trying to restart my hadoop cluster in Ambari after a reboot of all nodes. Despite not making any configuration changes the name node service fails to start with the error below. > Fail: Execution of 'su -s /bin/bash - hdfs -c 'export > PATH=$PATH:/usr/hdp/current/hadoop-client/bin ; hdfs --config > /etc/hadoop/conf dfsadmin -safemode get' | grep 'Safe mode is OFF'' > returned 1. I have looked around and found someone pointing to a non UTF-8 encoding issue but have not had any luck resolving this. Can someone tell me what this error means or how to debug it? Solution The name node service was failing to start because safe mode was on. After reading up on safe mode I realized that is turned on when read only mode is necessary for the name node. I'm not sure what caused it to stay in safe mode but running this command below resolved my issue. sudo -u hdfs hdfs dfsadmin -safemode leave

WAS Federated repositories - Not able to login when any one of the repositories is down

Scenario: In IBM IIS, when the user registry is configured as Federated repositories , we cannot login to WebSphere and any of the IIS components when any one of the repositories is down. Cause: If one or more configured repository is down, we cannot log in (even as admin) or stop WebSphere Application Server, regardless of the repository in which your particular ID is stored. Virtual member manager (VMM) always checks whether all repositories are up before authenticating. Resolution: To disable this feature, we must set allowOperationIfReposDown to true in wimconfig.xml file . Note: After updating wimconfig.xml, the services must be restarted for the changes to take effect. Reference Links: http://www.ibm.com/support/ knowledgecenter/SSAW57_8.5.5/ com.ibm.websphere.wim.doc/ UnableToAuthenticateWhenReposi toryIsDown.html https://developer.ibm.com/ answers/questions/242364/why- do-errors-cwwim2009e-and- secj0281e-occur-in-sy.html ​​

IGC - Not showing the steward and IGC rest explorer url not working

SystemOut.log says. Caused by: java.io.IOException: Permission denied at java.io.File.createTempFile(File.java:2013) at com.ibm.is.vr.client.impl.FileObjectStore.createTempFile (FileObjectStore.java:72) at com.ibm.is.vr.client.impl.FileObjectStore.ensureFilesOpen (FileObjectStore.java:58)  Solution: The exception is arising from a problem writing to vr.temp.location with the user WAS is running under. We have seen this before when WAS is running as non-root. Is your websphere process running as non-root? You can check by doing a ps as follows: ps -ef|grep AppServer on the services tier machine. Check the permissions on the temporary directory /tmp/*vrdata cd /tmp ls -ltr|grep vrdata If needed, the instructions on setting the location of vr.temp.location are here: http://www.ibm.com/support/knowledgecenter/SSZJPZ_11.5.0/com.ibm.swg.im.iis.mdwb.doc/topics/t_defining_search_directory.html The user the WAS is running under should have write per...

TNS-12560: Message 12560 not found; No message file for product=network, facility=TNS

​​ problem:               Message 1053 not found; No message file for product=network, facility=TNSTNS-12541:         Message 12541 not found; No message file for product=network, facility=TNS             TNS-12560: Message 12560 not found; No message file for product=network, facility=TNS           TNS-00511: Message 511 not found; No message file for product=network, facility=TNS          Linux Error: 111: Connection refused  solution:                set below variable on OS  level :     #export ORACLE_SID=<oracle db name>     #export ORACLE_HOME=<oracle_home> <take oracle home location from /etc/oratab file>     #export PATH=/usr/sbin:$PATH      #export PATH=$ORACLE_HOME/bin:$PATH                then run the command which giving the error after execution.

Oracle installation 11GR2 installation on RHEL7/ Centos7 errors and fixes

This article will list all errors/issues I encounter during Oracle installation with their fix. It will be updated with all new errors I will encounter. In this article ... ... " Fix prior install" needs jar binary. Install it with the following command: $ yum -y install java-devel memcpy error in ins_ctx.mk Operating System: Oracle Enterprise Linux 7 Oracle version: 11.2.0.1 Error output INFO: gcc -o ctxhx -m64 -L/u01/app/oracle/product/11.2.0/db_1/ctx/lib/ -L/u01/app/oracle/product/11.2.0/db_1/lib/ -L/u01/app/oracle/product/11.2.0/db_1/lib/stubs/  /u01/app/oracle/product/11.2.0/db_1/ctx/lib/ctxhx.o -L/u01/app/oracle/product/11.2.0/db_1/ctx/lib/ -lm -lsc_fa -lsc_ex -lsc_da -lsc_ca -lz  -lctxhx -Wl,-rpath,/u01/app/oracle/product/11.2.0/db_1/ctx/lib -lsnls11 -lnls11  -lcore11 -lsnls11 -lnls11 -lcore11 -lsnls11 -lnls11 -lxml11 -lcore11 -lunls11 -lsnls11 -lnls11 -lcore11 -lnls11  `cat /u01/app/oracle INFO: /product/11.2.0/db_1/lib/sysliblist`   INFO: /lib64/...

IBM IIS datastage MSSQL dsn to use domain authentication

AuthenticationMethod=9 Domain=DomainName

XMeta Healthchecker failed

ISALIte XMeta Healthchecker failed with OutOfMemory error.   Please increase java heapspace for xmetaAdmin command as below and run ISALite XMeta Healthchecker: Edit the <ISHOME>/ASBServer/bin/xmetaAdmin.sh Add -Xmx parameter to Java command in xmetaAdmin.sh file as below to increase heapsize to 4GB(i.e, 4096MB): "$JAVA" -Xmx4096m $EFFECTIVE_JAVA_OPTS -classpath "$CLASSPATH" com.ibm.xmeta.admin.AdminCommand "$@" Now, run ISALite XMeta Healthchecker.   If it still fails with OutOfMemory error, please increase the heapspace further, say 8GB(i.e, 8192MB) , run ISALite XMeta HealthChecker and get the report.

CDISF0808E: Error authenticating to the IBM InfoSphere Information Server. com.ibm.iis.isf.security.X509CertificateException: The URL [https://hostname:9443] is incorrect or is not trusted

Facing issue on running rules in IA(information Analyzer) and seeing the following erros in asb. agent -0.out [10/06/16 12:36:57:562 EDT] 1 com.ibm.iis.isf. agent .impl. Agent Impl log SEVERE CDISF0808E: Error authenticating to the IBM InfoSphere Information Server. com.ibm.iis.isf.security.X509CertificateException: The URL [ https://hostname:9443 ] is incorrect or is not trusted. To trust the connection, import the signer certificate into the local truststore, by running the following UpdateSignerCerts command: UpdateSignerCerts{.sh|.bat} -url https://hostname:9443 -user {admin user} -password {admin password} This Error could be that we need to update the signer certificates in Enginer Tier, after we made changes on SSL certificates recently http://www.ibm.com/support/knowledgecenter/SSZJPZ_11.3.0/com.ibm.swg.im.iis.found.admin.common.doc/topics/wsisinst_run_updatesignercerts.html After executing the commands pls restart the DataStage Service and Node ...

Unlock the files checked out by other users

One of  the scenarios that I faced in couple of my cases when someone has a set of files checked out and locked, and the person goes on vacation or is otherwise unavailable. Until these locks are removed, no one else can check in these files. Someone with the " Administer workspaces " permission to undo changes for another user. One option is to use the TF.exe command – line tool as provided below: tf undo "$/MyProject/VersionX/Utils/file.cs" /workspace:MyWorkspace;Domain\User/collection: http://server:8080/tfs/Collection/recursive Another option is to use the Team Foundation Power Tools by following the steps provided below: 1. Open Source Control Explorer. 2. Right – click the item on which checkout is to be undone (or a parent folder of multiple files to be undone). 3. Select Find in Source Control ➪ Status. 4. In the Find in Source Control dialog, leave the Status check box marked. 5. Enter the value for the path as "$/MyProjec...

An Introduction to Mutual SSL Authentication

Image
1. Introduction Mutual SSL authentication or certificate based mutual authentication refers to two parties authenticating each other through verifying the provided digital certificate so that both parties are assured of the others' identity. In technology terms, it refers to a client (web browser or client application) authenticating themselves to a server (website or server application) and that server also authenticating itself to the client through verifying the public key certificate/digital certificate issued by the trusted Certificate Authorities (CAs) . Because authentication relies on digital certificates, certification authorities such as Verisign or Microsoft Certificate Server are an important part of the mutual authentication process. From a high-level point of view, the process of authenticating and establishing an encrypted channel using certificate-based mutual authentication involves the following steps: A client requests access to a...

smtp test from server

Image
Test SMTP: Launch Notepad and create the following: To:YourEmailAddress From:YourEmailAddress Subject: This is a test email. This is a test.         Save the file to the desktop called "testemail" Click Save. Note: Be sure to include the " " around testemail. Navigate to C:\inetpub\mailroot\Pickup Copy the testemail from the desktop and paste it into the Pickup folder. It should disappear and send the email. Confirm you have received the test email.

R server error: --with-readline=yes (default) and headers/libs are not available

Image
yum install readline - devel

How To Solve Error: “E: Could not get lock /var/cache/apt/archives/lock – open (11: Resource temporarily unavailable) E: Unable to lock directory /var/cache/apt/archives/” On Debian 7 or Ubuntu

Today I have keep getting an annoying error when I try to install some libraries. "E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/cache/apt/archives/" This is the first time i got this error and i don't have any clue how to solve this. I googled a bit and found the solution after spending almost an hour. I wanted to share. Problem: Here what i did to install to python libraries. # apt-get install python-twisted Sample output: Reading package lists... Done Building dependency tree        Reading state information... Done The following extra packages will be installed:   python-crypto python-openssl python-pam python-pkg-resources python-pyasn1   python-serial python-twisted-bin python-twisted-conch python-twisted-core   python-twisted-lore python-twisted-mail python-twisted-names   python-twisted-news python-twisted-runner python-twisted-web   python-twisted-words python-zope.interf...

Information Server 11.3.1 install fails on Redhat 6 - J9Generic_Signal_Number=00000010

Technote (troubleshooting) Problem(Abstract) When installing Information Server 11.3.1 on Redhat Linux 6, the installer fails before it generates the install URL. The error is: INFO: Installation program will be running in this session, please do not close installation window until installation program completes. Unhandled exception Type=Illegal instruction vmState=0x00070000 J9Generic_Signal_Number=00000010 Signal_Number=00000004 Error_Value=00000000 Signal_Code=00000002 Handler1=00007FFFF6AFA820 Handler2=00007FFFF6447E90 There is a java dump after that. The java process will dump core as well. Cause There can be an issue with the version of IBM Java that is packaged with the Information Server installer. Resolving the problem Download the latest IBM Java 7 SR and put it in the is-suite/_jvm directory and rerun the install. Example: cd is-suite mv _jvm _jvm.orig mkdir _jvm Move the package downloaded to the _j...

IBM MDM server v11.5 BA UI issue

Unexpected application problem occurred " Below is the snippet of log from SystemOut.log file: [6/30/14 11:43:47:906 EDT] 0000016c servlet       E com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0014E: Uncaught service() exception root cause /index.jsp: com.ibm.websphere.servlet.error.ServletErrorReport: java.lang.NoClassDefFoundError: org/apache/myfaces/taglib/core/ViewTag  at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:695)  at com.ibm._jsp._index._jspService(_index.java:245) ​Solution:​ ​ 1. Stop the server 2. delete the content of <Application server profile path>/wstemp <Application server profile path>/temp 3. ./clearClassCache.sh  ./osgiCfgInit.sh.   4. Start the server. ​

How to Install JAVA 8 (JDK/JRE 8u91) on CentOS/RHEL and Fedora

Downloading Latest Java Archive Download latest Java SE Development Kit 8 release from its official download page or use following commands to download from shell. For 64Bit # cd /opt/ # wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F% 2Fwww.oracle.com %2F; oraclelicense=accept-securebackup-cookie" " http://download.oracle.com/otn-pub/java/jdk/8u91-b14/jdk-8u91-linux-x64.tar.gz " # tar xzf jdk-8u91-linux-x64.tar.gz For 32Bit # cd /opt/ # wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F% 2Fwww.oracle.com %2F; oraclelicense=accept-securebackup-cookie" " http://download.oracle.com/otn-pub/java/jdk/8u91-b14/jdk-8u91-linux-i586.tar.gz " # tar xzf jdk-8u91-linux-i586.tar.gz Note: If Above wget command does not work for you watch this example video to download java source archive using terminal. Install Java with Alternatives After extracting archive file use alte...

Registering a WebSphere windows services

Image
Registering a WebSphere windows services are very similar to adding a linux service. From a cmd prompt: Change directory to %WAS_HOME%/bin – in this example it is D:\IBM\WebSphere\AppServer\bin The syntax of the command is wasservice –add <service name> -serverName <name of server> -profilePath <path to server profile> To enable the server to restart automatically and to encode the user name and password additional parameters are required wasservice -add Dmgr -serverName dmgr -profilePath D:\IBM\WebSphere\AppServer\profiles\Dmgr01 -encodeParams -restart true -startType automatic -stopArgs "-username wasadmin -password password" wasservice -add Node -serverName nodeagent -profilePath D:\IBM\WebSphere\AppServer\profiles\AppSrv01 -encodeParams -restart true -startType automatic -stopArgs '-username wasadmin -password password -stopservers' Once the wasservice command has been run successfully the new services will be visible ...

Registering WebSphere as a linux service

Image
Registering WebSphere as a linux service is straight forward. User the wasservice script which is held in the $was_home/bin directory (default is /opt/IBM/WebSphere/AppServer/bin ). #!/bin/bash cd $WAS_HOME / bin ./ wasservice . sh - add Dmgr - serverName dmgr \ - profilePath / opt / IBM / WebSphere / AppServer / profiles / Dmgr01 \ - stopArgs '-username wasadmin -password password' \ - encodeParams ./ wasservice . sh - add Node - serverName nodeagent \ - profilePath / opt / IBM / WebSphere / AppServer / profiles / AppSrv01 \ - stopArgs '-username wasadmin -password password -stopservers' \ - encodeParams chkconfig -- add Dmgr_was . init chkconfig -- add Node_was . init chkconfig -- level 2345 Dmgr_was . init on chkconfig -- level 2345 Node_was . init on Running the wasservice commands with the appropriate arguments (see example above for syntax), w...

How to fix: User, group, or role '*' already exists in the current database. (Microsoft SQL Server, Error: 15023)

Image
Create failed for User 'TMS'. (Microsoft.SqlServer.Smo) User, group, or role 'TMS' already exists in the current database. (Microsoft SQL Server, Error: 15023)   To fix this there are two different methods depending on the version of SQL Server you are using. Both of these commands re-map the user's Security Identifier (SID) to match the sql server login's SID.   SQL Server 2008 / SQL Server 2008 R2 If you have already created the server login for the user, run this in the database with the login problem. (Change ' user'  to be the database username you wish to fix, and ' serverlogin ' is the sql server login to map the user to).  ALTER USER user WITH LOGIN = serverlogin For full details of the ALTER USER command see MSDN  http://msdn.microsoft.com/en-us/library/ms176060.aspx

IBM Error: ERROR: The system was unable to find the specified registry key or value.

Technote (troubleshooting) Problem(Abstract) While installing InfoSphere Information Server (IS) on Windows 2012 R2, there is severe message in the installation log. Symptom The following severe message can be seen in Information Server Installation log, but the installation is successful. 2015-07-08T10:55:39.740, INFO: CDIIN2753I:Command Array: reg query HKLM\Software\Microsoft\Windows NT\CurrentVersion /reg:64 /v CSDVersion, env = null, workingDir =null 2015-07-08T10:55:39.771, INFO: Exit Code: 1, Info: , Info ERROR: The system was unable to find the specified registry key or value. 2015-07-08T10:55:39.771, SEVERE: com.ibm.is.install.core.PlatformWindows Exit Code: 1, Info: , Error: ERROR: The system was unable to find the specified registry key or value. 2015-07-08T10:55:39.771, INFO: _windowsCsdVersion = null Cause This is caused because IS Installer is trying to get the Service Pack level for the host operat...

IBM Cognos: XQE-JDB-0004 A problem occurred finding the driver class “com.ibm.db2.jcc.DB2Driver”.

When you are trying to test the connection to the DB2 database from Cognos configuration and you are getting this error message: XQE-JDB-0004 A problem occurred finding the driver class "com.ibm.db2.jcc.DB2Driver". This error cause because the Cognos cannot find the DB2 drivers. Solution of this problem is simple. You have to copy files db2jcc.jar and db2jcc4.jar to <Install_Cognos>\v5dataserver\lib and <Install_Cognos>\webapps\p2pd\WEB-INF\lib. After you copy these files you need to restart the Cognos server.

The requested URL was not found - permalink error

When I update the permalinks to anything but default, links in the site give the error The requested URL ### was not found on this Server . Enable rewrite_module in apache Introduction In this tutorial, we will activate and learn how to manage URL rewrites using Apache2's mod_rewrite module. This tool allows us to rewrite URLs in a cleaner fashion, translating human-readable paths into code-friendly query strings. This guide is split into two halves: the first sets up a sample web application and the second explains commonly-used rewrite rules. Prerequisites To follow this tutorial, you will need: One fresh Ubuntu 14.04 Droplet A sudo non-root user, which you can set up by following steps 2 and 3 of this tutorial Step 1 — Installing Apache In this step, we will use a built-in package installer called apt-get . It simplifies management drastically and facilitates a clean installation. First, update the system's package index. This will ens...