You are likely to be suffering from a mild urinary tract infection. This can cause such symptoms.
This can also be simply due to dehydration, due to not drinking enough water. Other likely causes for males are prostatitis and bladder stones. You must bear in mind that it could also be an STD like Chlamydia and Ureaplasma infection, if you have a recent history of risky exposure, then you should go for clinical tests to rule this out.
You can try with some home and OTC treatment:
Take lots of water and fluids - this is virtually the most important step in home treatment.
Cranberry juice - this is known to be very useful in UTI
Urine alkalisers – Azo pills, Uristat, Bicitra, Citrolith,Oracit,Polycitra-K, Cystopurin, Effercitrate - you can get this OTC at pharmacies, use this.
Try these steps for a week, this should give you relief.
If it persists, then show a doctor personally and get checked up. You also have to be checked up if you develop fever or blood in the urine.
Dont worry, this can be treated easily - show a doctor if necessary- be safe.
Take care - wish you good health and a quick recovery.