The rapper known as T.I. reacts at the 2010 VH1 Hip Hop Honors in New York City June 3, 2010. REUTERS/Jessica Rinaldi

Rapper T.I. has been released from jail after being arrested on suspicion of possessing ecstasy, police said on Thursday.

T.I. whose real name is Clifford Harris Jr., 29, was arrested with his wife on Sunset Boulevard Wednesday night after police smelled marijuana coming from a car in which the Grammy award-winning rapper was a passenger.

He was booked for possession of a controlled substance and was released after posting bail of $10,000. He is yet to be formally charged because testing is currently being conducted on a handful of pills resembling ecstasy, a spokeswoman for the Los Angeles County sheriff's department said.

T.I.'s next court appearance has been set for Friday.

The Atlanta-born rapper and actor previously has been in trouble with the law, including numerous arrests on drugs and weapons charges. He was released from a halfway house five months ago after being sentenced to a year in prison on federal weapons charges.

The co-founder of Grand Hustle Records, distributed by Warner Music Group's Atlantic Records, he currently can be seen in the heist film Takers, that grabbed the No. 1 spot at the North American box office last weekend.

(Reporting by Christine Kearney, editing by Patricia Reaney and Bob Tourtellotte)