This phase II trial is studying how well sunitinib works in treating patients with idiopathic myelofibrosis. Sunitinib may stop the growth of abnormal cells by blocking some of the enzymes needed for cell growth and by blocking blood flow to the abnormal cells.