Skip to content

Whiteboard Talks

Random tech issues we face

  • Java
  • Linux
  • Privacy Policy
  • Contact Us

How to Increase Replication Factor for a Kafka topic

April 4, 2020 by Santosh

Some we have observed that the current replication factor for some topics is not set to its best. The reason may be the initial setup of Kafka, less traffic or the product is in initial stages In the future when our data grows, our aim shits towards durability and scalability and we want to make …

Continue Reading

How to reload .bash_profile from the command line

April 4, 2020 by Santosh

Just sharing few commands to load a .bash_profile without exiting from terminal or command line

Inheritance hierarchies in Jackson

March 29, 2020 by Santosh

We will look at how class hierarchies in Jackson works.  We will take an example of building a Notification Service Pojo to demonstrate this. Below is the package/class diagram for this.

Kafka Interview Questions

April 19, 2020 by Santosh

Here is a list of top Kafka interview question based on my exposure to Apache Kafka Kafka Basics What is Apache KafkaWhat are topics and partitions What are various components of KafkaWhat is a consumer groupWhat is an offsetWhat are the different ways to commit an offset?Does Kafka provides ordering guarantees?  What is the importance of …

Continue Reading

Gradle download sources and javadoc in eclipse or Intellij or Idea

April 4, 2020 by Santosh

For different workspace sources and javadoc from maven repo can be download as follows: Eclipse For IntelliJ & Android Studio To apply and run plugins: References https://docs.gradle.org/current/dsl/org.gradle.plugins.ide.eclipse.model.EclipseClasspath.htmlhttps://docs.gradle.org/current/dsl/org.gradle.plugins.ide.idea.model.IdeaModule.html

Continue Reading

Finding Ulimit of Process and a User

April 15, 2019 by Santosh

ulimit is a shell command to control the resources available to a bash shell and all the programs that are started from this shell. We can get and set  the ulimit of a process or a user  Ulimit of a process  Ulimit of a process can be found by doing cat of /process/<pid>/limits. Ulimit of a …

Continue Reading

Import SSL Certificates in trust store

March 30, 2019 by Sumit Gupta

First download certificate in java file Import it using keytool command Java Trust store location : <JRE_HOME>/lib/security/cacerts

Java SSL PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

March 30, 2019 by Sumit Gupta

Sometime back I got below error while connecting to SSL secured site in java. I was using java 8 update 60. Why this error comes and how to resolve it. We will see that. PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target Before getting into solution, I would like …

Continue Reading

Graceful shutdown of java process inside docker container

March 31, 2019 by Santosh

Recently faced an issue where the docker stop was not calling a shutdown hook was not working correctly. The same application when run as a spring boot applicaiton or jar without docker invokes the shutdownhook.   During debugging found that the boot app inside the container is not geting SIGTERM when docker stop command is being issued. The boot …

Continue Reading

How to push as different user in github

March 19, 2019 by Santosh

Remove all existing keysGenerate ssh key for the current user which wants to commit to githubadd the ssh key for new userInitialise the new Repository Add the remote url ( here note that we are not using https url)Add user name and email to git configCommit and push to git

Posts navigation

  • 1
  • 2
  • Next

Recent Posts

  • How to Increase Replication Factor for a Kafka topic
  • How to reload .bash_profile from the command line
  • Inheritance hierarchies in Jackson
  • Kafka Interview Questions
  • Gradle download sources and javadoc in eclipse or Intellij or Idea

Recent Comments

  • Kafka Interview Questions to expect during kafka interview on How to Increase Replication Factor for a Kafka topic

Archives

  • April 2020
  • March 2020
  • April 2019
  • March 2019
  • August 2018
  • July 2018
  • June 2018

Categories

  • Eclipse
  • Git-rm
  • Gradle
  • Intelij
  • jackson
  • Java
  • Java Exceptions
  • JSON
  • Kafka
  • Linux
  • MAven
  • Replication Factor Kafka
  • Threads
  • Uncategorized
  • Versioning
  • Wordpress
  • Zookeeper

Meta

  • Register
  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
© 2022 Whiteboard Talks - Powered by Cleanews