Saturday, 29 February 2020

Creating a simple plugin in jquery


How to install Kafka Server with Java 8


Kafka Comands

Starting Zookeeper 

C:\kafka_2.12-2.4\kafka_2.12-2.4.0\bin\windows>zookeeper-server-start C:\kafka_2.12-2.4\kafka_2.12-2.4.0\config\zookeeper.properties

Starting Kafka server

C:\ Kafka\ kafka-server-start.bat C:\kafka_2.12-2.4\kafka_2.12-2.4.0\config\server.properties

Creating topics

C:\Users\AnilBalwani>kafka-topics --zookeeper 127.0.0.1:2181 --topic test_topic --create --partitions 3 --replication-factor 1
WARNING: Due to limitations in metric names, topics with a period ('.') or underscore ('_') could collide. To avoid issues it is best to use either, but not both.
Created topic test_topic.
C:\Users\AnilBalwani>


List topics

C:\Users\AnilBalwani>kafka-topics --zookeeper 127.0.0.1:2181 --list
test_topic


Kafka Information about topics

C:\Users\AnilBalwani>kafka-topics --zookeeper 127.0.0.1:2181 --topic test_topic --describe
Topic: test_topic      PartitionCount: 3       ReplicationFactor: 1    Configs:
        Topic: test_topic      Partition: 0    Leader: 0       Replicas: 0     Isr: 0
        Topic: test_topic      Partition: 1    Leader: 0       Replicas: 0     Isr: 0
        Topic: test_topic      Partition: 2    Leader: 0       Replicas: 0     Isr: 0












Error running Kafka server time out error

Error running Kafka server timeout

kafka.zookeeper.ZooKeeperClientTimeoutException


Restart ZookeperServer this error occurs due to timeout of zookeeper.

Getting started with Apache Kafka


error running Kafka zookeeper

Error running Kafka

org.apache.zookeeper.server.quorum.QuorumPeerConfig$ConfigException: Error processing config\zookeeper.properties


C:\kafka_2.12-2.4\kafka_2.12-2.4.0\bin\windows>zookeeper-server-start config\zookeeper.properties
[2020-02-29 17:59:17,354] INFO Reading configuration from: config\zookeeper.properties (org.apache.zookeeper.server.quorum.QuorumPeerConfig)
[2020-02-29 17:59:17,365] WARN config\zookeeper.properties is relative. Prepend .\ to indicate that you're sure! (org.apache.zookeeper.server.quorum.QuorumPeerConfig)
[2020-02-29 17:59:17,367] ERROR Invalid config, exiting abnormally (org.apache.zookeeper.server.quorum.QuorumPeerMain)
org.apache.zookeeper.server.quorum.QuorumPeerConfig$ConfigException: Error processing config\zookeeper.properties
        at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:154)
        at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:113)
        at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:82)
Caused by: java.lang.IllegalArgumentException: config\zookeeper.properties file is missing
        at org.apache.zookeeper.server.util.VerifyingFileFactory.doFailForNonExistingPath(VerifyingFileFactory.java:51)
        at org.apache.zookeeper.server.util.VerifyingFileFactory.validate(VerifyingFileFactory.java:45)
        at org.apache.zookeeper.server.util.VerifyingFileFactory.create(VerifyingFileFactory.java:40)
        at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:139)
        ... 2 more
Invalid config, exiting abnormally



Solution

use command


C:\kafka_2.12-2.4\kafka_2.12-2.4.0\bin\windows>zookeeper-server-start C:\kafka_2.12-2.4\kafka_2.12-2.4.0\config\zookeeper.properties


here I give complete config path.

Thursday, 27 February 2020

Selecting different elements in Jquery

For selecting an id field with name mytable we can use

$('#mytable')

we can also use

$('.mytable')
If you want to select a row in my table use $('.mytable.tr') if you have to select h1 which is inside a paragraphwhich is  inside a div $('div.myDiv p h1') To get first row of table $('#myTable tbody tr:first') To select every text box and paragraph $('p,input') Change background of first row $('#meetable tbody tr:first').css('background-color','blue')

Wednesday, 26 February 2020

"BMXAA4024E - The synonym value REPORT is not valid for the domain REPORTTYPES."

This error occurs in Multilanguage environment.

whenever you add a new report and generate request page you can get this error because you have old reports from previous maximo version which are cause problems.

What you have to do is delete the no longer required data using steps from IBM page and then regenerate request page for all reports and then run the report.

Sunday, 16 February 2020

BMXAA0883E Entered path is not valid / BMXAA0883E entered file is not valid

BMXAA0883E Entered path is not valid / BMXAA0883E entered file is not valid


Creating folder in any maximo application can cause this error 


psdi.util.MXApplicationException: BMXAA0883E - The entered path \\maximo\DOCLINKS\ATTACHMENTS is not valid.
 SystemErr R at psdi.app.doclink.FldDoctypesDefaultFilePath.validate(FldDoctypesDefaultFilePath.java:117)

This error can occur when user id is not mapped in http server for doclinks.

There can be another reasor is http and websphere services have different logon userid etc.


Another solution could be doclinks folder did not have permission (security) access using websphere user once you put them it will work.

Monday, 10 February 2020

How to run a VMware machine in Virtual Box

How to run a VMware machine in Virtual Box


  1. Open Oracle virtual box and create new machine.
  2. Select use exisiting machine and browse to your VMware vmdx file.
  3. Open the machine. 
  4. Allocate a ram and select file upload download as bidirectional in advanced.
  5. Give a storage and select boot from hardisk.
  6. Start your machine.

Thursday, 6 February 2020

Workcenter Customization

Slowly but gradually Maximo will make you work on front end only.

To make it fully front end customizable tool workcenter is introduce which eventually will replance existing core maximo screens.

We for customizing workcenter you need know basics of JavaScript/jquery and rest api.


If you go to Maximo application path C:\ibm\maximo\application\maximo-x

you will be able to see files which contain HTML and jquery files.

Their are lot of lybraries which you require knowledge to customize work centers

Key libraries are

1. Polymer.html
2. Jquery UI (Most Important)


What is Polymer.html or Polymer api is doing is you create separate-separate components like
login,authentication, rest etc. and using this polymer api you import those components where it is required.

What else you can do with polymer is you create you custom html element give it a name and use it.

So you don't have all the code on one page and it will not look very bulky code for you.


Jquery UI gives you UI components like accordian, date picker which you can using for UI development.


For Workcenter customization you need to setup node.js.

Then you need to install bower which will help us creating a polymer application.

We have following existing workcenters

Workcenter for Business Analyst

Service Request Work Center

Maximo Supervisor

Manage Inventory

Maximo Technician


Back to Polymer :-

Polymer has a collection of elements

  • App
  • Paper
  • Iron
  • Gold
  • Platinum
  • Neon

Using these elements we can create our own markups.




Wednesday, 5 February 2020

How to calculate efforts (hours) required for upgrading maximo

This is a vast topic but I will give a basic summary required : -


1. Note down all customizations (Custom Classes and automation scripts).
2. Note down all test cases done for core maximo implementation (critical one's )
3. Note down all integration/dependent addons/reporting/Unix scripts involved.
4. Divide no. of hours based on hour's per individual.
5. Make an excel to with gantt chart similar to Maximo Schedule for resource allocation.
6. Check all latest features you can use from new Maximo or check what existing customization can be removed after upgrade.
7. Add certain number of hours for customization which you might need to do because of incompatibility with existing customization/code optimization/ java code to script conversion.
8. Add time required to run each test case.
9. Note down all assumptions, dependencies, and Risk.
10. Add time required for weekly status meetings.