Most master program in SJSU requires 30 units (= 8 courses + 2 thesis courses). In order to complete the requirement in 2 years, you need to be aggressive in you class selection and find your thesis advisor before the 2nd year. Check with you department office and talk to graduate advisor. You need to plan well base on the class schedule and establish good relationship with professors who might be your potential advisor or committee. A good thesis advisor can definitely help a lot.